added error reason to api

This commit is contained in:
Christian Haschek
2015-11-27 13:02:28 +01:00
parent 8f7ba33f8f
commit cc66b3d1e0

View File

@@ -45,4 +45,4 @@ else if($_REQUEST['geturlinfo'])
else if($_REQUEST['a']=='oembed')
echo json_encode($pm->oembed($_REQUEST['url'],$_REQUEST['t']));
else
echo json_encode(array('status'=>'ERR'));
echo json_encode(array('status'=>'ERR','reason'=>'NO_VALID_COMMAND'));