]> git.wh0rd.org - tt-rss.git/blobdiff - db-prefs.php
initial work on update daemon
[tt-rss.git] / db-prefs.php
index 1b6262d9a13ce311bcff7e32aeaa57f7e645fb3d..80d890fbc249973e03e068c1da85d7cf5bcb20c2 100644 (file)
@@ -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) {