0004082: Missing file errors and fix
[fa-stable.git] / includes / current_user.inc
index 20ce1e0fc9599f8d178f34c07146603497ba18e2..52fafa53e690e785dd8b3bb845c2636a312ae6f2 100644 (file)
@@ -732,6 +732,8 @@ function recalculate_cols(&$cols)
 
 function flush_dir($path, $wipe = false) 
 {
+       if (!file_exists($path))
+               return;
        $dir = @opendir($path);
        if(!$dir)
                return;