]> git.wh0rd.org - tt-rss.git/blobdiff - classes/feeds.php
inline feed update: set feed as needing update if open_basedir is set + plugins need...
[tt-rss.git] / classes / feeds.php
index df0fd440b8a1c2422832140d522a79310a333b93..e0390ecc17cf212352f5bcb20d9540c50fe47297 100755 (executable)
@@ -203,6 +203,9 @@ class Feeds extends Handler_Protected {
                                                                WHERE id = '$feed'");
                                        }
                                }
+                       } else {
+                               $this->dbh->query("UPDATE ttrss_feeds SET last_updated = '1970-01-01', last_update_started = '1970-01-01'
+                                                               WHERE id = '$feed'");
                        }
                }
 
@@ -671,7 +674,7 @@ class Feeds extends Handler_Protected {
                        if ($line["orig_feed_id"]) {
 
                                $tmp_result = $this->dbh->query("SELECT * FROM ttrss_archived_feeds
-                                       WHERE id = ".$line["orig_feed_id"]);
+                                       WHERE id = ".$line["orig_feed_id"] . " AND owner_uid = " . $_SESSION["uid"]);
 
                                                if ($this->dbh->num_rows($tmp_result) != 0) {