summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-23 22:26:07 +0300
committerAndrew Dolgov <[email protected]>2021-02-23 22:26:07 +0300
commit8d2e3c2528e67f8650c122f014364a34bf690d2a (patch)
treefd44203c8a5919848f689cb6caa8c0c8d0784d54 /classes/feeds.php
parent37d46411c77bda2b1823f7d230b06e36b7125a8d (diff)
drop errors.php and simplify error handling
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index eaedc1aee..a38cbae97 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -499,15 +499,7 @@ class Feeds extends Handler_Protected {
// this is parsed by handleRpcJson() on first viewfeed() to set cdm expanded, etc
$reply['runtime-info'] = RPC::make_runtime_info();
- $reply_json = json_encode($reply);
-
- if (!$reply_json) {
- $reply_json = json_encode(["error" => ["code" => 15,
- "message" => json_last_error_msg()]]);
- }
-
- print $reply_json;
-
+ print json_encode($reply);
}
private function _generate_dashboard_feed() {