From e846f2cd6373f7ac9ce3ecb2791445381e1759cb Mon Sep 17 00:00:00 2001 From: akulikov Date: Wed, 28 Jan 2009 13:49:59 +0000 Subject: [PATCH] session_start Notice disabled git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@53 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/User.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/User.class.php b/classes/User.class.php index e93adca..e4a74e5 100644 --- a/classes/User.class.php +++ b/classes/User.class.php @@ -52,7 +52,7 @@ class User static function process() { if (Env::getCookie(session_name())) { //есть сессия - session_start(); + @session_start(); self::setInfo(Env::Session('user')); } elseif (Env::getCookie('login') && Env::getCookie('login_hash')) { self::remember(); @@ -64,7 +64,7 @@ class User Env::setCookie('login', self::$user->login, TIME_NOW + LOGIN_COOKIE_TTL); Env::setCookie('login_hash', self::getHash(), TIME_NOW + LOGIN_COOKIE_TTL); - session_start(); + @session_start(); $_SESSION['user'] = self::$user; }