Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.28
diff -u -p -r1.3.2.2.2.5.2.28 boost.module
--- boost.module	19 Apr 2009 08:19:36 -0000	1.3.2.2.2.5.2.28
+++ boost.module	20 Apr 2009 05:53:33 -0000
@@ -628,22 +628,26 @@ function _boost_mkdir_p($pathname, $mode
 function _boost_rmdir_rf($dirname, $callback = NULL) {
   $empty = TRUE; // Start with an optimistic mindset

-  foreach (glob($dirname . '/*', GLOB_NOSORT) as $file) {
-    if (is_dir($file)) {
-      if (!_boost_rmdir_rf($file, $callback))
-        $empty = FALSE;
-    }
-    else if (is_file($file)) {
-      if (function_exists($callback)) {
-        if (!$callback($file)) {
+  $files = glob($dirname . '/*', GLOB_NOSORT);
+  if ($files) {
+    foreach ($files as $file) {
+      if (is_dir($file)) {
+        if (!_boost_rmdir_rf($file, $callback)) {
           $empty = FALSE;
-          continue;
         }
       }
-      @unlink($file);
-    }
-    else {
-      $empty = FALSE; // it's probably a symbolic link
+      else if (is_file($file)) {
+        if (function_exists($callback)) {
+          if (!$callback($file)) {
+            $empty = FALSE;
+            continue;
+          }
+        }
+        @unlink($file);
+      }
+      else {
+        $empty = FALSE; // it's probably a symbolic link
+      }
     }
   }

