From b750d48551e0d89f3f310773dc07ef73e51d3fcb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 27 Mar 2006 05:37:06 +0100 Subject: [PATCH] mobile: fix collapse for null category --- mobile/tt-rss.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php index f5a184271..eb212be0d 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; } ?>