diff --git a/src/applications/search/controller/PhabricatorSearchController.php b/src/applications/search/controller/PhabricatorSearchController.php --- a/src/applications/search/controller/PhabricatorSearchController.php +++ b/src/applications/search/controller/PhabricatorSearchController.php @@ -31,7 +31,7 @@ if ($request->getBool('search:primary')) { // If there's no query, just take the user to advanced search. - if (!strlen($query)) { + if (!phutil_nonempty_string($query)) { $advanced_uri = '/search/query/advanced/'; return id(new AphrontRedirectResponse())->setURI($advanced_uri); }