]> git.wh0rd.org Git - tt-rss.git/commitdiff
backend/fbexport: do not set last_connected; properly set error status
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Apr 2011 12:24:28 +0000 (16:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Apr 2011 12:24:28 +0000 (16:24 +0400)
backend.php

index c4edd92eaa62849aa5f92a60e4fffd4f64d1a076..3e2633dcaa8743e60740c8b539cf259ea9eed087 100644 (file)
                                        array_push($feeds, $line);
                                }
 
-                               db_query($link, "UPDATE ttrss_linked_instances SET last_connected = NOW(),
+                               db_query($link, "UPDATE ttrss_linked_instances SET,
                                        last_status_in = 1 WHERE id = '$instance_id'");
 
                                print json_encode(array("feeds" => $feeds));
                        } else {
+
+                               db_query($link, "UPDATE ttrss_linked_instances SET,
+                                       last_status_in = 0 WHERE id = '$instance_id'");
+
                                print json_encode(array("error" => array("code" => 6)));
                        }
                break; // fbexport