PHP Notice: Undefined Index
-
I modified line 68 of main.php to replace the direct call to $_SERVER with the getenv() function to get rid of the notice.
$this->Rooturl = preg_replace(“/^www\./i”, “”, getenv(‘HTTP_HOST’)); // $_SERVER[‘HTTP_HOST’]
The topic ‘PHP Notice: Undefined Index’ is closed to new replies.