mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-26 15:51:28 +00:00
drop errors.php and simplify error handling
This commit is contained in:
@@ -16,8 +16,6 @@ class Pref_Labels extends Handler_Protected {
|
||||
|
||||
if ($line = $sth->fetch(PDO::FETCH_ASSOC)) {
|
||||
print json_encode($line);
|
||||
} else {
|
||||
print json_encode(["error" => "LABEL_NOT_FOUND"]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user