]> git.mxchange.org Git - friendica.git/commitdiff
Opps, fixed parser error ...
authorRoland Haeder <roland@mxchange.org>
Wed, 5 Apr 2017 20:20:09 +0000 (22:20 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 5 Apr 2017 20:20:19 +0000 (22:20 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/api.php

index 81d1d1ee367d97f53df8b41b44a74b7410949080..287ae255468ff057e4034ffd36d526ec9d1f0b44 100644 (file)
@@ -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']);
                }