From f192adc13351f1fd16e3433794c4371e83cca96d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Apr 2011 16:24:28 +0400 Subject: [PATCH] backend/fbexport: do not set last_connected; properly set error status --- backend.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5