From: Alexander Sadleir Date: Sat, 05 Nov 2011 02:07:34 +0000 Subject: Don't get referrer if undefined X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=edfc3f40577a23861e0ab2857b92d385b4fef505 --- Don't get referrer if undefined --- --- a/feedback.php +++ b/feedback.php @@ -31,7 +31,7 @@ } else { $stopid = ""; $stopcode = ""; -$urlparts = explode("?",$_SERVER["HTTP_REFERER"]); +if (isset($_SERVER["HTTP_REFERER"])) $urlparts = explode("?",$_SERVER["HTTP_REFERER"]); if (isset($urlparts[1])) { $getparams = explode("&",$urlparts[1]); foreach ($getparams as $param) { @@ -60,7 +60,7 @@