Page MenuHomePhorge

D25589.1737248383.diff
No OneTemporary

D25589.1737248383.diff

diff --git a/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php b/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php
--- a/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php
+++ b/src/applications/search/management/PhabricatorSearchManagementQueryWorkflow.php
@@ -21,7 +21,7 @@
public function execute(PhutilArgumentParser $args) {
$viewer = $this->getViewer();
$raw_query = $args->getArg('query');
- if (!strlen($raw_query)) {
+ if (!phutil_nonempty_string($raw_query)) {
throw new PhutilArgumentUsageException(
pht('Specify a query with --query.'));
}

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 00:59 (14 m, 41 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1130566
Default Alt Text
D25589.1737248383.diff (682 B)

Event Timeline