Skip to content

Commit db370cf

Browse files
authored
Merge pull request #307 from magento/MQE-1428
MQE-1428: CLI command.php treats argument "0" as null
2 parents 7044b70 + 32f36fa commit db370cf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

etc/config/command.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313

1414
$tokenPassedIn = urldecode($_POST['token']);
1515
$command = urldecode($_POST['command']);
16-
17-
if (!empty($_POST['arguments'])) {
18-
$arguments = urldecode($_POST['arguments']);
19-
} else {
20-
$arguments = null;
21-
}
16+
$arguments = urldecode($_POST['arguments']);
2217

2318
// Token returned will be null if the token we passed in is invalid
2419
$tokenFromMagento = $tokenModel->loadByToken($tokenPassedIn)->getToken();

0 commit comments

Comments
 (0)