The log actually comes because the $_SERVER['REMOTE_ADDR'] (the needle) is empty, so the check/correction should read:
Code:
case (!empty($_SERVER['REMOTE_ADDR']) && strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR']));
There were a couple of other cases where the $_SERVER['REMOTE_ADDR'] variable is checked in this manner, creating similar log entries if the value is empty. I'm pretty sure that DrByte had posted a solution somewhere (??) whereby the change for v1.6.0 is to check early on in the initialization and set the variable so that it's never empty.
Bookmarks