Page MenuHomePhorge

D25585.1737573652.diff
No OneTemporary

D25585.1737573652.diff

diff --git a/src/applications/herald/management/HeraldRuleManagementWorkflow.php b/src/applications/herald/management/HeraldRuleManagementWorkflow.php
--- a/src/applications/herald/management/HeraldRuleManagementWorkflow.php
+++ b/src/applications/herald/management/HeraldRuleManagementWorkflow.php
@@ -33,7 +33,7 @@
$viewer = $this->getViewer();
$rule_name = $args->getArg('rule');
- if (!strlen($rule_name)) {
+ if (!phutil_nonempty_string($rule_name)) {
throw new PhutilArgumentUsageException(
pht('Specify a rule to edit with "--rule <id|monogram>".'));
}

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 22, 19:20 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1130082
Default Alt Text
D25585.1737573652.diff (600 B)

Event Timeline