From: Vincent Zanotti Date: Mon, 25 Aug 2008 13:58:34 +0000 (+0200) Subject: Fixes S::user() for non-hruid branches. X-Git-Tag: core/1.0.0~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=be2abdd1013a3951e08fd621793af29541fb414a;p=platal.git Fixes S::user() for non-hruid branches. Signed-off-by: Vincent Zanotti --- diff --git a/classes/s.php b/classes/s.php index 030cca9..9cc1637 100644 --- a/classes/s.php +++ b/classes/s.php @@ -96,7 +96,7 @@ class S private static $user = null; public static function &user() { - if (self::$user == null) { + if (self::$user == null && class_exists('User')) { self::$user = User::getSilentWithValues(S::i('uid'), $_SESSION); } return self::$user;