From 5a28eae59da8267ea8d67727d7821df106a4cd35 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 5 Apr 2017 22:20:09 +0200 Subject: [PATCH] Opps, fixed parser error ... Signed-off-by: Roland Haeder --- include/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/api.php b/include/api.php index 81d1d1ee36..287ae25546 100644 --- a/include/api.php +++ b/include/api.php @@ -353,7 +353,7 @@ $called_api = null; header ("Content-Type: application/json"); foreach ($r as $rr) $json = json_encode($rr); - if ($_GET['callback']) { + if (x($_GET, 'callback')) { $json = $_GET['callback'] . "(" . $json . ")"; } return $json; @@ -2224,7 +2224,7 @@ $called_api = null; } else { $ret['text'] = $item['title'] . "\n" . html2plain(bbcode(api_clean_plain_items($item['body']), false, false, 2, true), 0); } - if (x($_GET, 'getUserObjects']) && $_GET['getUserObjects'] == 'false') { + if (x($_GET, 'getUserObjects') && $_GET['getUserObjects'] == 'false') { unset($ret['sender']); unset($ret['recipient']); } -- 2.39.5