diff options
author | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
---|---|---|
committer | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
commit | 58a2577d48790c79adfd44bcfd662c980ce6cfe4 (patch) | |
tree | 523d814ea0b7b6f617fe515b186099c6e83fed72 /include/sessions.php | |
parent | e470a273cf09562fb2f9c0c899002303f19c8d16 (diff) | |
parent | cc332603431102a682feda22b9cf0093a29f0176 (diff) |
Merge branch 'master' of https://github.com/gothfox/Tiny-Tiny-RSS.git
Diffstat (limited to 'include/sessions.php')
-rw-r--r-- | include/sessions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php index dd1ca663d..539b81a06 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -19,6 +19,8 @@ ini_set("session.use_only_cookies", true); ini_set("session.gc_maxlifetime", $session_expire); + global $session_connection; + function session_get_schema_version($link, $nocache = false) { global $schema_version; @@ -34,6 +36,7 @@ function validate_session($link) { if (SINGLE_USER_MODE) return true; + if (!$link) return false; $check_ip = $_SESSION['ip_address']; @@ -92,7 +95,6 @@ function ttrss_open ($s, $n) { - global $session_connection; $session_connection = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); |