From: Vincent Zanotti Date: Sun, 20 Jul 2008 21:04:35 +0000 (+0200) Subject: Fixes the session's logger instantiation when suid is in use (should use parameter... X-Git-Tag: core/1.0.0~55 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=38b7dbd95e5d725eb2b7b34a6a8fe5e0c84073f0;hp=ddeb5f8915f2aed8877689b0db19a63791c4e57d;p=platal.git Fixes the session's logger instantiation when suid is in use (should use parameter-provided $uid when no other uid is available). Signed-off-by: Vincent Zanotti --- diff --git a/classes/s.php b/classes/s.php index eb55adb..9be89a7 100644 --- a/classes/s.php +++ b/classes/s.php @@ -77,7 +77,7 @@ class S if (!S::has('log')) { if (S::has('suid')) { $suid = S::v('suid'); - S::set('log', new PlLogger(S::v('uid'), $suid['uid'])); + S::set('log', new PlLogger(S::v('uid', $uid), $suid['uid'])); } else if (S::has('uid') || $uid) { S::set('log', new PlLogger(S::v('uid', $uid))); }