Page MenuHomePhorge

D25592.1734850421.diff
No OneTemporary

D25592.1734850421.diff

diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
@@ -59,7 +59,7 @@
$input = $args->getArg('input');
$is_live = $args->getArg('live');
- if (!strlen($input) && !$is_live) {
+ if (!phutil_nonempty_string($input) && !$is_live) {
throw new PhutilArgumentUsageException(
pht(
'Specify the dumpfile to read with "--input", or use "--live" to '.
@@ -67,7 +67,7 @@
}
$from = $args->getArg('from');
- if (!strlen($from)) {
+ if (!phutil_nonempty_string($from)) {
throw new PhutilArgumentUsageException(
pht(
'Specify namespace to rename from with %s.',
@@ -75,7 +75,7 @@
}
$to = $args->getArg('to');
- if (!strlen($to)) {
+ if (!phutil_nonempty_string($to)) {
throw new PhutilArgumentUsageException(
pht(
'Specify namespace to rename to with %s.',

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 06:53 (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1025469
Default Alt Text
D25592.1734850421.diff (1 KB)

Event Timeline