From b39b4e0f398c205676004352bb1c7316f809bea2 Mon Sep 17 00:00:00 2001 From: patdenice Date: Mon, 4 Feb 2013 10:02:05 +0000 Subject: bug:2835 ability detect mobile theme earlier, before plugin load git-svn-id: http://piwigo.org/svn/trunk@20543 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/user.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/user.inc.php') 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(); -- cgit v1.2.3