Skip to content

Commit

Permalink
Update UserManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Jan 26, 2022
1 parent 45de42a commit 7ef4339
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/MicroweberPackages/User/UserManager.php
Expand Up @@ -1251,14 +1251,12 @@ public function get_by_id($id)
return false;
}

$data = array();
$data['id'] = $id;
$data['limit'] = 1;
$data['single'] = 1;

$data = $this->get_all($data);

return $data;
$findUser = User::where('id', $id)->first();
if ($findUser == null) {
return false;
}

return $findUser->toArray();
}

public function update_last_login_time()
Expand Down

0 comments on commit 7ef4339

Please sign in to comment.