[pLog-svn] r1604 - plog/trunk/class/action

ork at devel.plogworld.net ork at devel.plogworld.net
Sat Mar 26 18:31:18 GMT 2005


Author: ork
Date: 2005-03-26 18:31:17 +0000 (Sat, 26 Mar 2005)
New Revision: 1604

Modified:
   plog/trunk/class/action/blogaction.class.php
Log:
throwed warning if no referer exists


Modified: plog/trunk/class/action/blogaction.class.php
===================================================================
--- plog/trunk/class/action/blogaction.class.php	2005-03-26 18:23:43 UTC (rev 1603)
+++ plog/trunk/class/action/blogaction.class.php	2005-03-26 18:31:17 UTC (rev 1604)
@@ -227,7 +227,8 @@
 				
         	// update the referer statistics
             $referers = new Referers();
-            $referers->addReferer( $_SERVER['HTTP_REFERER'], 0, $this->_blogInfo->getId());
+            if (array_key_exists( 'HTTP_REFERER', $_SERVER ))
+                $referers->addReferer( $_SERVER['HTTP_REFERER'], 0, $this->_blogInfo->getId());
 			
 			return true;
 		}




More information about the pLog-svn mailing list