mobile: fix collapse for null category

This commit is contained in:
Andrew Dolgov 2006-03-27 05:37:06 +01:00
parent 42096f5202
commit b750d48551
1 changed files with 9 additions and 2 deletions

View File

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