From de696427ad56edeb2dd982e41eda1e6e43e1062c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Feb 2006 14:52:17 +0100 Subject: initial work on update daemon --- db-prefs.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'db-prefs.php') 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) { -- cgit v1.2.3