From 9e180fe528974d05a5c0b2a84b7b62bfedc0d021 Mon Sep 17 00:00:00 2001 From: Ji Lu Date: Tue, 12 Feb 2019 10:03:50 -0600 Subject: [PATCH] MQE-1428: CLI command.php treats argument "0" as null --- etc/config/command.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/etc/config/command.php b/etc/config/command.php index 600025cf4..583ba0aa4 100644 --- a/etc/config/command.php +++ b/etc/config/command.php @@ -13,12 +13,7 @@ $tokenPassedIn = urldecode($_POST['token']); $command = urldecode($_POST['command']); - - if (!empty($_POST['arguments'])) { - $arguments = urldecode($_POST['arguments']); - } else { - $arguments = null; - } + $arguments = urldecode($_POST['arguments']); // Token returned will be null if the token we passed in is invalid $tokenFromMagento = $tokenModel->loadByToken($tokenPassedIn)->getToken();