From d2e8c0b32d54363b2e0de2aa3cbe55c7b2698b09 Mon Sep 17 00:00:00 2001 From: Diatrex Date: Mon, 2 Mar 2020 17:13:48 +0300 Subject: [PATCH] #718 Netgsm error when posting ad --- .../visiosoft/profile-module/src/Profile/ProfileModel.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/default/visiosoft/profile-module/src/Profile/ProfileModel.php b/addons/default/visiosoft/profile-module/src/Profile/ProfileModel.php index fd6ad8370..c1a0762c9 100644 --- a/addons/default/visiosoft/profile-module/src/Profile/ProfileModel.php +++ b/addons/default/visiosoft/profile-module/src/Profile/ProfileModel.php @@ -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(); }