diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 6da86a4..afa387c 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -468,7 +468,7 @@ function user_access($string, AccountInterface $account = NULL) { * TRUE if the user is blocked, FALSE otherwise. */ function user_is_blocked($name) { - return \Drupal::entityQuery('user') + return (bool) \Drupal::entityQuery('user') ->condition('name', $name) ->condition('status', 0) ->execute();