backend/fbexport: do not set last_connected; properly set error status

This commit is contained in:
Andrew Dolgov 2011-04-20 16:24:28 +04:00
parent 1eb3012f82
commit f192adc133
1 changed files with 5 additions and 1 deletions

View File

@ -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