]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: fix collapse for null category
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 27 Mar 2006 04:37:06 +0000 (05:37 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 27 Mar 2006 04:37:06 +0000 (05:37 +0100)
mobile/tt-rss.php

index f5a184271786f8e1c955c91395f81089890c810e..eb212be0d1ce91df730267f62195487062a5907e 100644 (file)
                        db_query($link, "UPDATE ttrss_feed_categories SET
                                collapsed = NOT collapsed WHERE id = '$cat_id' AND owner_uid = " . 
                                $_SESSION["uid"]);
-                       header("Location: tt-rss.php");
-                       return;
+               } else {
+                       if ($_COOKIE["ttrss_vf_uclps"] != 1) {
+                               setcookie("ttrss_vf_uclps", 1);
+                       } else {
+                               setcookie("ttrss_vf_uclps", 0);
+                       }
                }
+               
+               header("Location: tt-rss.php");
+               return;
        }
 
 ?>