From: Andrew Dolgov Date: Mon, 27 Mar 2006 04:37:06 +0000 (+0100) Subject: mobile: fix collapse for null category X-Git-Tag: 1.1.5~36 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b750d48551e0d89f3f310773dc07ef73e51d3fcb;p=tt-rss.git mobile: fix collapse for null category --- diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php index f5a18427..eb212be0 100644 --- a/mobile/tt-rss.php +++ b/mobile/tt-rss.php @@ -27,9 +27,16 @@ 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; } ?>