summaryrefslogtreecommitdiff
path: root/mobile
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-27 05:37:06 +0100
committerAndrew Dolgov <[email protected]>2006-03-27 05:37:06 +0100
commitb750d48551e0d89f3f310773dc07ef73e51d3fcb (patch)
treed6506ab4bfc05b8415115ca9fe80f0933033920c /mobile
parent42096f52025fed93924a54aada2c761a574029dd (diff)
mobile: fix collapse for null category
Diffstat (limited to 'mobile')
-rw-r--r--mobile/tt-rss.php11
1 files 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;
}
?>