little fix, when default record does not exist of pm oauth client

This commit is contained in:
Erik Amaru Ortiz
2014-04-28 17:14:34 -04:00
parent 231fee13d5
commit e7360a767f

View File

@@ -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(