]> git.wh0rd.org Git - tt-rss.git/commitdiff
only bump lang cookie when using persistent session cookies
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 19 Aug 2007 06:37:06 +0000 (07:37 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 19 Aug 2007 06:37:06 +0000 (07:37 +0100)
functions.php

index cefd4917f2ef1869174444bbd2f7ef675854b7ef..11bb9d8a8e7060204912baeb1c743397e3049a3f 100644 (file)
                                db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " . 
                                        $_SESSION["uid"]);
 
-                               if ($_SESSION["language"]) {
+                               if ($_SESSION["language"] && SESSION_COOKIE_LIFETIME > 0) {
                                        setcookie("ttrss_lang", $_SESSION["language"], 
                                                time() + SESSION_COOKIE_LIFETIME);
                                }