Skip to content
Snippets Groups Projects
Commit 831b001b authored by Eddie Lau's avatar Eddie Lau
Browse files

MAGETWO-50081: [Github][PR] Fix direct file deletion by MarketplaceManager #3095

- added checking for first index
parent 59fbc6e3
No related merge requests found
......@@ -269,7 +269,7 @@ class MarketplaceManager
if ($directory->isExist($this->pathToAuthFile) && $directory->isReadable($this->pathToAuthFile)) {
try {
$authJsonData = $this->getAuthJson();
if (isset($authJsonData['http-basic'][$serviceUrl])) {
if (isset($authJsonData['http-basic']) && isset($authJsonData['http-basic'][$serviceUrl])) {
unset($authJsonData['http-basic'][$serviceUrl]);
$path = DirectoryList::COMPOSER_HOME . DIRECTORY_SEPARATOR . $this->pathToAuthFile;
if ($authJsonData === ['http-basic' => []]) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment