if (strtoupper($purge_intl) == "DEFAULT")
$purge_intl = 0;
+ if (strtoupper($purge_intl) == "DISABLED")
+ $purge_intl = -1;
+
$result = db_query($link, "UPDATE ttrss_feeds SET
title = '$feed_title', feed_url = '$feed_link',
update_interval = '$upd_intl',
if ($line["purge_interval"] == "0")
$line["purge_interval"] = "Default";
+ if ($line["purge_interval"] < 0)
+ $line["purge_interval"] = "Disabled";
+
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
$line["purge_interval"] . "</a></td>";
if ($line["purge_interval"] == "0")
$line["purge_interval"] = "Default";
+ if ($line["purge_interval"] < 0)
+ $line["purge_interval"] = "Disabled";
+
print "<td>" . $line["purge_interval"] . "</td>";
} else {
if ($purge_interval == 0) $purge_interval = PURGE_OLD_DAYS;
- if ($purge_interval != 0) {
+ if ($purge_interval > 0) {
if (DB_TYPE == "pgsql") {
db_query($link, "DELETE FROM ttrss_entries WHERE
// notify("Saving feed.");
- if (upd_intl < 0) {
+/* if (upd_intl < 0) {
notify("Update interval must be >= 0 (0 = default)");
return;
}
if (purge_intl < 0) {
notify("Purge days must be >= 0 (0 = default)");
return;
- }
+ } */
if (link.length == 0) {
notify("Feed link cannot be blank.");