]> git.wh0rd.org Git - tt-rss.git/commitdiff
initialize session connection in ttrss_open but define session_connection in global...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 10:04:47 +0000 (14:04 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 10:04:47 +0000 (14:04 +0400)
include/sessions.php

index 4923a05b70e446e61e0809f56c6d545ae5127fe5..539b81a0619f1770779dea3b42e0f5721f475ea3 100644 (file)
@@ -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;
 
 
 
        function ttrss_open ($s, $n) {
-
                global $session_connection;
 
+               $session_connection = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
+
                return true;
        }