summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 09:13:30 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 09:13:30 +0400
commit25db6c5191e9163cab573cb5f374a81902f3e11f (patch)
tree6e3aff0540362a21a56c960deb52c965f0103309
parent60ed4c9ad50e10dc2e91991de32df5e9289ceda6 (diff)
fix session support for single user mode
-rw-r--r--include/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index f2eeb976b..7cc792e63 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -754,6 +754,7 @@
$_SESSION["prefs_cache"] = false;
if (SINGLE_USER_MODE) {
+ @session_start();
authenticate_user($link, "admin", null);
cache_prefs($link);
load_user_plugins($link, $_SESSION["uid"]);