diff --git a/api_v3/services/PartnerService.php b/api_v3/services/PartnerService.php index f0b507ae2f9..621b7e5ac2e 100644 --- a/api_v3/services/PartnerService.php +++ b/api_v3/services/PartnerService.php @@ -514,9 +514,7 @@ public function getPublicInfoAction ($id = null) throw new KalturaAPIException(KalturaErrors::INVALID_PARTNER_ID, $id); } - $c = PartnerPeer::getDefaultCriteria(); - $c->addAnd(PartnerPeer::ID ,$id); - $dbPartner = PartnerPeer::doSelectOne($c); + $dbPartner = PartnerPeer::retrieveByPK($id); if (is_null($dbPartner)) { throw new KalturaAPIException(KalturaErrors::INVALID_PARTNER_ID, $id);