$API undefined


#1

PHP Notice: Undefined variable: api in /var/www/html/admin/scripts/pi-hole/php/add.php on line 16, referer: http://pi.hole/

// Perform all of the verification for list editing
// when NOT invoked and authenticated from API
if (!$api) {
    list_verify($type);
}

Running current Developer version of Pi-hole.


#2

Is this an error you ran into and if so how did you trigger it?


#3

This was in my Apache log. I have not noticed a error or did anything special.


#4

The warning can be ignored, but you can make a PR to fix it if you want.