misc forceUpdateAllFeeds fixes
This commit is contained in:
parent
75a241b95d
commit
b8a6ff3044
11
backend.php
11
backend.php
|
@ -705,13 +705,15 @@
|
||||||
|
|
||||||
if (ENABLE_UPDATE_DAEMON) {
|
if (ENABLE_UPDATE_DAEMON) {
|
||||||
|
|
||||||
|
if ($subop == "forceUpdateAllFeeds") {
|
||||||
|
|
||||||
$result = db_query($link, "SELECT count(id) AS cid FROM
|
$result = db_query($link, "SELECT count(id) AS cid FROM
|
||||||
ttrss_scheduled_updates WHERE feed_id IS NULL AND
|
ttrss_scheduled_updates WHERE feed_id IS NULL AND
|
||||||
owner_uid = " . $_SESSION["uid"]);
|
owner_uid = " . $_SESSION["uid"]);
|
||||||
|
|
||||||
$cid = db_fetch_result($result, 0, "cid");
|
$cid = db_fetch_result($result, 0, "cid");
|
||||||
|
|
||||||
print "<rpc-reply>";
|
# print "<rpc-reply>";
|
||||||
|
|
||||||
if ($cid == 0) {
|
if ($cid == 0) {
|
||||||
|
|
||||||
|
@ -719,13 +721,14 @@
|
||||||
(owner_uid, feed_id, entered) VALUES
|
(owner_uid, feed_id, entered) VALUES
|
||||||
(".$_SESSION["uid"].", NULL, NOW())");
|
(".$_SESSION["uid"].", NULL, NOW())");
|
||||||
|
|
||||||
print "<message>ScheduledOK</message>";
|
print "<!-- ScheduledOK -->";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
print "<message>RequestAlreadyInQueue</message>";
|
print "<!-- RequestAlreadyInQueue -->";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</rpc-reply>";
|
# print "</rpc-reply>";
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
update_all_feeds($link, $subop == "forceUpdateAllFeeds");
|
update_all_feeds($link, $subop == "forceUpdateAllFeeds");
|
||||||
|
|
Loading…
Reference in New Issue