summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-20 16:24:28 +0400
committerAndrew Dolgov <[email protected]>2011-04-20 16:24:28 +0400
commitf192adc13351f1fd16e3433794c4371e83cca96d (patch)
treedc5401f494629cd2b92c501d68c3e7b8a229f1ec /backend.php
parent1eb3012f82ada8c2f6c9a7d48aeaf39d9e07cfcc (diff)
backend/fbexport: do not set last_connected; properly set error status
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index c4edd92ea..3e2633dca 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