$API undefined


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) {

Running current Developer version of Pi-hole.


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


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


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