aboutsummaryrefslogtreecommitdiffstats
path: root/admin/site_reader_local.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/site_reader_local.php')
-rw-r--r--admin/site_reader_local.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/site_reader_local.php b/admin/site_reader_local.php
index da12e9398..5a48fe30a 100644
--- a/admin/site_reader_local.php
+++ b/admin/site_reader_local.php
@@ -84,6 +84,8 @@ function get_elements($path)
{
while (($node = readdir($contents)) !== false)
{
+ if ($node == '.' or $node == '..') continue;
+
if (is_file($path.'/'.$node))
{
$extension = get_extension($node);
@@ -98,8 +100,6 @@ function get_elements($path)
}
}
elseif (is_dir($path.'/'.$node)
- and $node != '.'
- and $node != '..'
and $node != 'pwg_high'
and $node != 'pwg_representative'
and $node != 'thumbnail' )