]> git.wh0rd.org Git - tt-rss.git/commitdiff
googlereaderimport: disable creation of archived feeds until the SQL thing is resolved
authorAndrew Dolgov <fox@fakecake.org>
Sun, 31 Mar 2013 05:52:50 +0000 (09:52 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 31 Mar 2013 05:52:50 +0000 (09:52 +0400)
plugins/googlereaderimport/init.php

index 16430f8c01e78ca6637baa43cc56c8fbc5431bf6..1c9f3b8bf0db6797be272fb5f533e850ef7b9157 100644 (file)
@@ -171,6 +171,8 @@ class GoogleReaderImport extends Plugin {
 
                if (!$guid) $guid = sha1($link);
 
+               $create_archived_feeds = false; // may cause SQL errors SOMEHOW, thus disabled for the time being
+
                $guid = "$owner_uid,$guid";
 
                $content_hash = sha1($content);
@@ -187,7 +189,7 @@ class GoogleReaderImport extends Plugin {
 
                // before dealing with archived feeds we must check ttrss_feeds to maintain id consistency
 
-               if ($orig_feed_data['feed_url']) {
+               if ($orig_feed_data['feed_url'] && $create_archived_feeds) {
                                $result = db_query($this->link,
                                        "SELECT id FROM ttrss_feeds WHERE feed_url = '".$orig_feed_data['feed_url']."'
                                                AND owner_uid = $owner_uid");