Fixed mismatch parsing exception
method Member::getScheduleSyncInfoByEvent was returning false instead of null when member didnt had any sync info associated with event Change-Id: I311f5dd75d00c44247f845b78f5c158482070dd1
This commit is contained in:
parent
0622bfff7a
commit
481ea91170
|
@ -776,7 +776,8 @@ SQL;
|
||||||
$criteria = Criteria::create();
|
$criteria = Criteria::create();
|
||||||
$criteria->where(Criteria::expr()->eq('summit_event', $event));
|
$criteria->where(Criteria::expr()->eq('summit_event', $event));
|
||||||
$criteria->andWhere(Criteria::expr()->eq('calendar_sync_info', $calendar_sync_info));
|
$criteria->andWhere(Criteria::expr()->eq('calendar_sync_info', $calendar_sync_info));
|
||||||
return $this->schedule_sync_info->matching($criteria)->first();
|
$res = $this->schedule_sync_info->matching($criteria)->first();
|
||||||
|
return $res === false ? null : $res;
|
||||||
}
|
}
|
||||||
catch(NoResultException $ex1){
|
catch(NoResultException $ex1){
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue