#718 Netgsm error when posting ad

This commit is contained in:
Diatrex 2020-03-02 17:13:48 +03:00
parent c55092c21e
commit d2e8c0b32d

View File

@ -5,12 +5,10 @@ use Anomaly\Streams\Platform\Model\Profile\ProfileProfileEntryModel;
class ProfileModel extends ProfileProfileEntryModel implements ProfileInterface
{
public function getProfile($id = null)
{
if($id != null)
{
return $this->query()->where('user_id',$id);
if($id != null) {
return $this->query()->where('user_id', $id);
}
return $this->query();
}