Opps, fixed parser error ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
737a6670af
commit
5a28eae59d
1 changed files with 2 additions and 2 deletions
|
@ -353,7 +353,7 @@ $called_api = null;
|
||||||
header ("Content-Type: application/json");
|
header ("Content-Type: application/json");
|
||||||
foreach ($r as $rr)
|
foreach ($r as $rr)
|
||||||
$json = json_encode($rr);
|
$json = json_encode($rr);
|
||||||
if ($_GET['callback']) {
|
if (x($_GET, 'callback')) {
|
||||||
$json = $_GET['callback'] . "(" . $json . ")";
|
$json = $_GET['callback'] . "(" . $json . ")";
|
||||||
}
|
}
|
||||||
return $json;
|
return $json;
|
||||||
|
@ -2224,7 +2224,7 @@ $called_api = null;
|
||||||
} else {
|
} else {
|
||||||
$ret['text'] = $item['title'] . "\n" . html2plain(bbcode(api_clean_plain_items($item['body']), false, false, 2, true), 0);
|
$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['sender']);
|
||||||
unset($ret['recipient']);
|
unset($ret['recipient']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue