summaryrefslogtreecommitdiff
path: root/include/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-02 14:04:47 +0400
committerAndrew Dolgov <[email protected]>2013-04-02 14:04:47 +0400
commitc35b6d8e14fd930128cd70c7dc46bef9e1c39d9d (patch)
tree3280e9499e91aaa4295d551b16969964f19532b7 /include/sessions.php
parent168680976f9678e2769b77324e8a80527c16d287 (diff)
initialize session connection in ttrss_open but define session_connection in global context
Diffstat (limited to 'include/sessions.php')
-rw-r--r--include/sessions.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sessions.php b/include/sessions.php
index 4923a05b7..539b81a06 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -21,8 +21,6 @@
global $session_connection;
- $session_connection = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
function session_get_schema_version($link, $nocache = false) {
global $schema_version;
@@ -97,9 +95,10 @@
function ttrss_open ($s, $n) {
-
global $session_connection;
+ $session_connection = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
+
return true;
}