Page MenuHomePhorge

D25590.1732038906.diff
No OneTemporary

D25590.1732038906.diff

diff --git a/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php b/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php
--- a/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php
+++ b/src/applications/aphlict/management/PhabricatorAphlictManagementNotifyWorkflow.php
@@ -26,7 +26,7 @@
$viewer = $this->getViewer();
$username = $args->getArg('user');
- if (!strlen($username)) {
+ if (!phutil_nonempty_string($username)) {
throw new PhutilArgumentUsageException(
pht(
'Specify a user to notify with "--user".'));
@@ -45,7 +45,7 @@
}
$message = $args->getArg('message');
- if (!strlen($message)) {
+ if (!phutil_nonempty_string($message)) {
throw new PhutilArgumentUsageException(
pht(
'Specify a message to send with "--message".'));

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 17:55 (20 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
978283
Default Alt Text
D25590.1732038906.diff (916 B)

Event Timeline