From: Andrew Dolgov Date: Wed, 20 Apr 2011 12:24:28 +0000 (+0400) Subject: backend/fbexport: do not set last_connected; properly set error status X-Git-Tag: 1.5.3~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f192adc13351f1fd16e3433794c4371e83cca96d;p=tt-rss.git backend/fbexport: do not set last_connected; properly set error status --- diff --git a/backend.php b/backend.php index c4edd92e..3e2633dc 100644 --- a/backend.php +++ b/backend.php @@ -605,11 +605,15 @@ 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