diff options
author | patdenice <patdenice@piwigo.org> | 2013-02-04 10:02:05 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2013-02-04 10:02:05 +0000 |
commit | b39b4e0f398c205676004352bb1c7316f809bea2 (patch) | |
tree | caef2c48a312e4e399f5483d0b143d4bf9915a9c /include/user.inc.php | |
parent | 3826020023e05af1d2722812c102ea00ca3b7b7f (diff) |
bug:2835
ability detect mobile theme earlier, before plugin load
git-svn-id: http://piwigo.org/svn/trunk@20543 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/user.inc.php')
-rw-r--r-- | include/user.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/user.inc.php b/include/user.inc.php index 0ff89c950..69d6af692 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -26,7 +26,10 @@ $user['id'] = $conf['guest_id']; if (isset($_COOKIE[session_name()])) { - session_start(); + if (session_id() == '') + { + session_start(); + } if (isset($_GET['act']) and $_GET['act'] == 'logout') { // logout logout_user(); |