- $user = dba::selectFirst('user', ['uid'], ['nickname' => $nick]);
- if (!DBM::is_result($user)) {
- throw new \RuntimeException(L10n::t('User not found'));
+ $user = DBA::selectFirst('user', ['uid'], ['nickname' => $nick]);
+ if (!DBA::isResult($user)) {
+ throw new RuntimeException(L10n::t('User not found'));