Index: /trunk/admin/site_reader_local.php
===================================================================
--- /trunk/admin/site_reader_local.php	(revision 10157)
+++ /trunk/admin/site_reader_local.php	(revision 12642)
@@ -85,4 +85,6 @@
     while (($node = readdir($contents)) !== false)
     {
+      if ($node == '.' or $node == '..') continue;
+
       if (is_file($path.'/'.$node))
       {
@@ -99,6 +101,4 @@
       }
       elseif (is_dir($path.'/'.$node)
-               and $node != '.'
-               and $node != '..'
                and $node != 'pwg_high'
                and $node != 'pwg_representative'
Index: /trunk/admin/include/functions.php
===================================================================
--- /trunk/admin/include/functions.php	(revision 12640)
+++ /trunk/admin/include/functions.php	(revision 12642)
@@ -534,11 +534,11 @@
       while (($node = readdir($contents)) !== false)
       {
-        if (is_dir($path.'/'.$node)
-            and $node != '.'
+        if ($node != '.'
             and $node != '..'
             and $node != '.svn'
             and $node != 'thumbnail'
             and $node != 'pwg_high'
-            and $node != 'pwg_representative')
+            and $node != 'pwg_representative'
+            and is_dir($path.'/'.$node))
         {
           array_push($dirs, $path.'/'.$node);
