[-] BO : Bug fix on module extract zip - #PSCFI-5335
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15262 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -1806,7 +1806,7 @@ FileETag INode MTime Size
|
||||
$zip = new PclZip($fromFile);
|
||||
$list = $zip->extract(PCLZIP_OPT_PATH, $toDir);
|
||||
foreach ($list as $extractedFile)
|
||||
if ($extractedFile['status'] != 'ok')
|
||||
if ($extractedFile['status'] != 'ok' && $extractedFile['status'] != 'already_a_directory')
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user