//small check

This commit is contained in:
vAugagneur committed 2012-05-21 07:23:31 +00:00
1 parent 4f173aa5a3
commit 9f28f5bfe3
1 file changed
+4
+4
View File
@@ -634,6 +634,8 @@ class ToolsCore
{ {
$dirname = rtrim($dirname, '/').'/'; $dirname = rtrim($dirname, '/').'/';
$files = scandir($dirname); $files = scandir($dirname);
if (is_dir($dirname))
{
foreach ($files as $file) foreach ($files as $file)
if ($file != '.' && $file != '..' && $file != '.svn') if ($file != '.' && $file != '..' && $file != '.svn')
{ {
@@ -646,6 +648,8 @@ class ToolsCore
rmdir($dirname); rmdir($dirname);
} }
}
/** /**
* Display an error according to an error code * Display an error according to an error code
* *