backend/fbexport: do not set last_connected; properly set error status
This commit is contained in:
parent
1eb3012f82
commit
f192adc133
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue