$_SERVER['REMOTE_ADDR'] can be empty, which causes the error
I think you can suppress the error with @
Code:
case (@strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])):
or clarify the case condition
Code:
case (!empty($_SERVER['REMOTE_ADDR'])&&strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])):