X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fapi.php;h=cd5d5241f86c8faa231407c51b9e6540ce17ac7e;hb=10ede7314136edb1c475e1af546a59ff4c5648cf;hp=e44fcc493ca9de313141bd820d2595756ba6e6eb;hpb=5a6da8b447430174ae231a3b8203fd4bd8416cc1;p=friendica.git diff --git a/mod/api.php b/mod/api.php index e44fcc493c..cd5d5241f8 100644 --- a/mod/api.php +++ b/mod/api.php @@ -1,5 +1,7 @@ user) && x($a->user,'uid') && $a->user['uid'] != local_user()) { + if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) { notice( t('Permission denied.') . EOL); return; } @@ -106,8 +108,6 @@ function api_content(App $a) { '$no' => t('No'), )); - //echo "
"; var_dump($app); killme(); - return $o; }