diff --git a/src/applications/auth/management/PhabricatorAuthManagementRefreshWorkflow.php b/src/applications/auth/management/PhabricatorAuthManagementRefreshWorkflow.php index c5a5192f5b..e984aab483 100644 --- a/src/applications/auth/management/PhabricatorAuthManagementRefreshWorkflow.php +++ b/src/applications/auth/management/PhabricatorAuthManagementRefreshWorkflow.php @@ -34,7 +34,7 @@ final class PhabricatorAuthManagementRefreshWorkflow )); $username = $args->getArg('user'); - if (strlen($username)) { + if (phutil_nonempty_string($username)) { $user = id(new PhabricatorPeopleQuery()) ->setViewer($viewer) ->withUsernames(array($username))