[pLog-svn] r1718 - plog/trunk/class/view

ork at devel.plogworld.net ork at devel.plogworld.net
Mon Apr 4 23:13:52 GMT 2005


Author: ork
Date: 2005-04-04 23:13:51 +0000 (Mon, 04 Apr 2005)
New Revision: 1718

Modified:
   plog/trunk/class/view/view.class.php
Log:
i don't know.. i got strange "__PHP_Incomplete_Class" errors .. now serialising the sniff object.. didn't get any error since ..


Modified: plog/trunk/class/view/view.class.php
===================================================================
--- plog/trunk/class/view/view.class.php	2005-04-04 22:26:40 UTC (rev 1717)
+++ plog/trunk/class/view/view.class.php	2005-04-04 23:13:51 UTC (rev 1718)
@@ -309,11 +309,11 @@
 
             // 'browser' object that all views will have, so that we can gather information
             // about the client...
-            if ($this->getSessionValue("phpSniffObject") == "") {
+            if ($this->getSessionValue("phpSniff") == "") {
                 // as long as we're part of a session, the client won't change :)
-                $this->setSessionValue("phpSniffObject", new phpSniff());
+                $this->setSessionValue( "phpSniff", serialize(new phpSniff()) );
             }
-            $this->setValue( "browser", $this->getSessionValue("phpSniffObject") );
+            $this->setValue( "browser", unserialize($this->getSessionValue("phpSniff")) );
         }
     }
 ?>




More information about the pLog-svn mailing list