fix catchupAll call, rename catchupPage to catchupSelected and update it to new schema
This commit is contained in:
parent
b17fcb1a0c
commit
b018b49b2e
|
@ -399,14 +399,14 @@
|
||||||
print "</rpc-reply>";
|
print "</rpc-reply>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($subop == "catchupPage") {
|
if ($subop == "catchupSelected") {
|
||||||
|
|
||||||
$ids = split(",", $_GET["ids"]);
|
$ids = split(",", $_GET["ids"]);
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
|
|
||||||
db_query($link, "UPDATE ttrss_entries SET unread=false,last_read = NOW()
|
db_query($link, "UPDATE ttrss_user_entries SET unread=false,last_read = NOW()
|
||||||
WHERE id = '$id'");
|
WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -445,7 +445,7 @@
|
||||||
$subop = $_GET["subop"];
|
$subop = $_GET["subop"];
|
||||||
|
|
||||||
if ($subop == "catchupAll") {
|
if ($subop == "catchupAll") {
|
||||||
db_query($link, "UPDATE ttrss_entries SET
|
db_query($link, "UPDATE ttrss_user_entries SET
|
||||||
last_read = NOW(),unread = false WHERE owner_uid = " . $_SESSION["uid"]);
|
last_read = NOW(),unread = false WHERE owner_uid = " . $_SESSION["uid"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue