BUGFIX: Fixed minor error on dev/buildcache

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69921 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-01-08 22:24:14 +00:00
parent 4cf2ee5e38
commit e2dead2a8a

View File

@ -46,7 +46,7 @@ class RebuildStaticCacheTask extends Controller {
} }
$urls = array_unique($urls); $urls = array_unique($urls);
if($removeAll) { if($removeAll && file_exists("../cache")) {
echo "Removing old cache... \n"; echo "Removing old cache... \n";
flush(); flush();
Filesystem::removeFolder("../cache", true); Filesystem::removeFolder("../cache", true);