Use getByNickname as suggested in code review.
This commit is contained in:
parent
fe52719d37
commit
93926e99b8
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class Profile
|
|||
*/
|
||||
public static function load(App $a, $nickname, array $profiledata = [], $show_connect = true)
|
||||
{
|
||||
$user = DBA::selectFirst('user', [], ['nickname' => $nickname, 'account_removed' => false]);
|
||||
$user = User::getByNickname($nickname);
|
||||
|
||||
if (!DBA::isResult($user) && empty($profiledata)) {
|
||||
Logger::log('profile error: ' . DI::args()->getQueryString(), Logger::DEBUG);
|
||||
|
|
Loading…
Reference in a new issue