little fix, when default record does not exist of pm oauth client
This commit is contained in:
@@ -1269,7 +1269,12 @@ class adminProxy extends HttpProxyController
|
||||
$data = array('info' => array());
|
||||
$pmRestClient = OauthClientsPeer::retrieveByPK('x-pm-local-client');
|
||||
$status = ! empty($pmRestClient);
|
||||
|
||||
if ($status) {
|
||||
$row = $pmRestClient->toArray(BasePeer::TYPE_FIELDNAME);
|
||||
} else {
|
||||
$row = array("CLIENT_ID" => '');
|
||||
}
|
||||
|
||||
$data['info'] = array(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user