Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2629020
D25590.1732038906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
916 B
Referenced Files
None
Subscribers
None
D25590.1732038906.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25590: Fix PHP 8.1 "strlen(null)" exception for "/bin/aphlict notify" without parameter
Attached
Detach File
Event Timeline
Log In to Comment