Fix session bootstrap
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 6 Mar 2007 17:31:24 +0000 (17:31 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 6 Mar 2007 17:31:24 +0000 (17:31 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1554 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/corelogger.php

index c4b909b..58085ab 100644 (file)
@@ -34,7 +34,7 @@ class CoreLogger
      * @param $suid the id of the administrator who has just su'd to the user
      * @return VOID
      */
-    public function __construct($uid, $suid = null)
+    public function __construct($uid, $suid = 0)
     {
         // write the session entry
         $this->uid     = $uid;
@@ -54,7 +54,7 @@ class CoreLogger
      * @param $suid the id of the administrator who has just su'd to the user
      * @return session the session id
      */
-    private function writeSession($uid, $suid = null)
+    private function writeSession($uid, $suid = 0)
     {
         $ip      = $_SERVER['REMOTE_ADDR'];
         $host    = strtolower(gethostbyaddr($_SERVER['REMOTE_ADDR']));