--- sites/all/modules/boost/boost.module	Thu Jan 08 13:45:01 2009
+++ sites/all/modules/boost/boost.module	Fri Jan 09 18:50:48 2009
@@ -624,3 +624,5 @@
 
-  foreach (glob($dirname . '/*', GLOB_NOSORT) as $file) {
+  $cache_dir_files = glob($dirname . '/*', GLOB_NOSORT);
+  if ($cache_dir_files) {
+    foreach ($cache_dir_files as $file) {
     if (is_dir($file)) {
@@ -642,2 +644,3 @@
   }
+  }
 
