From df18d8c3ffb080d7895410cd1afd2f9eac070de3 Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Mon, 7 May 2012 11:16:09 -0400 Subject: [PATCH] BUG 8856 "Migrate the Clear cache Interface from master bra.." UPDATED - problem when files aren't found - fixed problem on G::rm_dir() --- gulliver/system/class.g.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 301b7d288..f3dbd7e33 100755 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -570,20 +570,15 @@ class G if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') exec('DEL /F /S /Q %' . $dirName . '%', $res); else - rmdir($file); + @rmdir($file); } else { - unlink($file); + @unlink($file); } } - - if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') - exec('DEL /F /S /Q %' . $dirName . '%', $res); - else - rmdir($file); } else { - unlink($dirName); + @unlink($dirName); } }