summaryrefslogtreecommitdiff
path: root/db-prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-11 14:52:17 +0100
committerAndrew Dolgov <[email protected]>2006-02-11 14:52:17 +0100
commitde696427ad56edeb2dd982e41eda1e6e43e1062c (patch)
tree10e185b34e67caf0f1c49062d74cefe9f479d6bc /db-prefs.php
parentcbd8650dfe0edd0a2eecd99b78cda80c61cd123d (diff)
initial work on update daemon
Diffstat (limited to 'db-prefs.php')
-rw-r--r--db-prefs.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/db-prefs.php b/db-prefs.php
index 1b6262d9a..80d890fbc 100644
--- a/db-prefs.php
+++ b/db-prefs.php
@@ -2,10 +2,12 @@
require_once "config.php";
require_once "db.php";
- session_start();
-
- if (!$_SESSION["prefs_cache"])
- $_SESSION["prefs_cache"] = array();
+ if (! DISABLE_SESSIONS) {
+ session_start();
+
+ if (!$_SESSION["prefs_cache"])
+ $_SESSION["prefs_cache"] = array();
+ }
function get_pref($link, $pref_name, $user_id = false) {