]> git.wh0rd.org Git - tt-rss.git/commitdiff
unbreak auth_remote and possibly other auth plugins
authorAndrew Dolgov <fox@fakecake.org>
Sat, 30 Mar 2013 06:48:19 +0000 (10:48 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Sat, 30 Mar 2013 06:48:19 +0000 (10:48 +0400)
include/functions.php

index 34f4112b28f2eee0ad2822356c95e97a61fdce5e..030d8d50efa33e6763163c254b51810bd5ea752c 100644 (file)
        function authenticate_user($link, $login, $password, $check_only = false) {
 
                if (!SINGLE_USER_MODE) {
-
                        $user_id = false;
 
                        global $pluginhost;
                        }
 
                        if ($user_id && !$check_only) {
+                               @session_start();
+
                                $_SESSION["uid"] = $user_id;
 
                                $result = db_query($link, "SELECT login,access_level,pwd_hash FROM ttrss_users