X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fcorelogger.php;h=e5784c614e583c66d4709bfd51f3a1b0b2a64c6a;hb=9807a8ee0ed53cfa49e8f71a4f483a1904532ac4;hp=c4b909b7f9216bada0e8c9824ba3f813a5e543ea;hpb=9ffe0e777ce0b2cd9f9fd6ff52390d826c368db5;p=platal.git diff --git a/classes/corelogger.php b/classes/corelogger.php index c4b909b..e5784c6 100644 --- a/classes/corelogger.php +++ b/classes/corelogger.php @@ -22,7 +22,7 @@ class CoreLogger { /** user id */ - private $uid; + public $uid; /** id of the session */ private $session; /** list of available actions */ @@ -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']));