From: x2003bruneau Date: Tue, 6 Mar 2007 17:31:24 +0000 (+0000) Subject: Fix session bootstrap X-Git-Tag: xorg/0.9.14~230 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=155819d9ece12a06d37df46e22b76e3c71f65fba;p=platal.git Fix session bootstrap git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1554 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/classes/corelogger.php b/classes/corelogger.php index c4b909b..58085ab 100644 --- a/classes/corelogger.php +++ b/classes/corelogger.php @@ -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']));