From: Andrew Dolgov Date: Tue, 2 Apr 2013 10:04:47 +0000 (+0400) Subject: initialize session connection in ttrss_open but define session_connection in global... X-Git-Tag: 1.7.6~34 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c35b6d8e14fd930128cd70c7dc46bef9e1c39d9d;p=tt-rss.git initialize session connection in ttrss_open but define session_connection in global context --- diff --git a/include/sessions.php b/include/sessions.php index 4923a05b..539b81a0 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; }