summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-29 10:26:09 +0100
committerAndrew Dolgov <[email protected]>2005-11-29 10:26:09 +0100
commita88c1f36443c5d761d4224df5b887d6b558431fe (patch)
tree66071ab4e886004920c8204d5d833461d7505d6c /functions.php
parentf932bc9ff3632ccee1d1c9a00750869ef43ca484 (diff)
update_interval < 0 disables feed updates, show only 20 subscribed feeds in user details
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 7a09b9d86..8095b3142 100644
--- a/functions.php
+++ b/functions.php
@@ -170,6 +170,13 @@
return;
}
+ $result = db_query($link, "SELECT update_interval
+ FROM ttrss_feeds WHERE id = '$feed'");
+
+ $update_interval = db_fetch_result($result, 0, "update_interval");
+
+ if ($update_interval < 0) { return; }
+
$feed = db_escape_string($feed);
error_reporting(0);
@@ -183,7 +190,7 @@
db_query($link, "BEGIN");
- $result = db_query($link, "SELECT title,icon_url,site_url,owner_uid
+ $result = db_query($link, "SELECT title,icon_url,site_url,owner_uid
FROM ttrss_feeds WHERE id = '$feed'");
$registered_title = db_fetch_result($result, 0, "title");