aboutsummaryrefslogtreecommitdiffstats
path: root/admin/configuration.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/configuration.php')
-rw-r--r--admin/configuration.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index 21e5c2b4d..5ea0da672 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -514,9 +514,12 @@ switch ($page['section'])
{
$watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH));
}
- foreach (glob(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'watermarks/*.png') as $file)
+ if ( ($glob=glob(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'watermarks/*.png')) !== false)
{
- $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH));
+ foreach ($glob as $file)
+ {
+ $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH));
+ }
}
$watermark_filemap = array( '' => '---' );
foreach( $watermark_files as $file)