From: niekt0 Date: Thu, 13 Oct 2011 20:30:15 +0000 (+0200) Subject: removed some warnings X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=6cfa89c1d31d80113ea9e59580bbd9740ddf2e4e;p=mirrors%2FKyberia-bloodline.git removed some warnings --- diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 1d68665..75b613b 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -156,11 +156,11 @@ if (!empty($_SESSION['debugging']) && $_SESSION['debugging']) { // DO NOT MESS WITH THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //creating neural network -if (preg_match('/id\/(\d+)/',$_SERVER['HTTP_REFERER'],$match)) { +if (preg_match('/id\/(\d+)/',isset($_SERVER['HTTP_REFERER'])? $_SERVER['HTTP_REFERER'] : "",$match)) { $referer_id=$match[1]; -} elseif (preg_match('/k\/([a-z0-9]{1,7})/',$_SERVER['HTTP_REFERER'],$match)) { +} elseif (preg_match('/k\/([a-z0-9]{1,7})/',isset($_SERVER['HTTP_REFERER'])? $_SERVER['HTTP_REFERER'] : "",$match)) { $referer_id=base_convert($match[1], 36, 10); -} elseif (preg_match('/name\/(.*?)\/?$/',$_SERVER['HTTP_REFERER'],$match)) { +} elseif (preg_match('/name\/(.*?)\/?$/',isset($_SERVER['HTTP_REFERER'])? $_SERVER['HTTP_REFERER'] : "",$match)) { $referer_id = nodes::getNodeIdByName($match[1]); }