diff options
Diffstat (limited to 'db-prefs.php')
-rw-r--r-- | db-prefs.php | 10 |
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) { |