merge in rt 3.4.6. *gulp*!
[freeside.git] / rt / bin / webmux.pl.in
index 73b1014..4cc4d61 100644 (file)
@@ -95,7 +95,8 @@ if ($ENV{'MOD_PERL'} && !$RT::DevelMode) {
     
     use File::Path qw( rmtree );
     use File::Glob qw( bsd_glob );
-    rmtree([ bsd_glob("$RT::MasonDataDir/obj/*") ], 0, 1);
+    my @files = bsd_glob("$RT::MasonDataDir/obj/*");
+    rmtree([ @files ], 0, 1) if @files;
 }
 
 sub handler {