properly check for entry id array being present before iterating it in mobile/classic (closes #267)
This commit is contained in:
parent
7a293008b6
commit
b2a653c37f
|
@ -364,12 +364,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($catchup_op == "selection") {
|
if ($catchup_op == "selection") {
|
||||||
$ids_to_mark = array_keys($_GET["sel_ids"]);
|
if (is_array($_GET["sel_ids"])) {
|
||||||
if ($ids_to_mark) {
|
$ids_to_mark = array_keys($_GET["sel_ids"]);
|
||||||
foreach ($ids_to_mark as $id) {
|
if ($ids_to_mark) {
|
||||||
db_query($link, "UPDATE ttrss_user_entries SET
|
foreach ($ids_to_mark as $id) {
|
||||||
unread = false,last_read = NOW()
|
db_query($link, "UPDATE ttrss_user_entries SET
|
||||||
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
|
unread = false,last_read = NOW()
|
||||||
|
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue