Skip to content

Commit

Permalink
Merge branch 'release' of https://github.com/PrestaShop/PrestaShop in…
Browse files Browse the repository at this point in the history
…to release
  • Loading branch information
vAugagneur committed Dec 28, 2012
2 parents ef46d41 + 1dde9b6 commit d10bf06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/Tools.php
Expand Up @@ -669,8 +669,7 @@ public static function safePostVars()
public static function deleteDirectory($dirname, $delete_self = true)
{
$dirname = rtrim($dirname, '/').'/';
$files = scandir($dirname);
if (is_dir($dirname))
if ($files = scandir($dirname))
{
foreach ($files as $file)
if ($file != '.' && $file != '..' && $file != '.svn')
Expand Down

0 comments on commit d10bf06

Please sign in to comment.