Merge pull request #373 from openclassify/dia

#718 Netgsm error when posting ad
This commit is contained in:
Fatih Alp 2020-03-02 18:03:07 +03:00 committed by GitHub
commit 4ea999fd99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}