Ignore:
Timestamp:
Jun 29, 2012, 6:25:02 AM (12 years ago)
Author:
rvelices
Message:

bug 2668 - fix php warnings on glob function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r15950 r16167  
    515515      $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH));
    516516    }
    517     foreach (glob(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'watermarks/*.png') as $file)
    518     {
    519       $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH));
     517    if ( ($glob=glob(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'watermarks/*.png')) !== false)
     518    {
     519      foreach ($glob as $file)
     520      {
     521        $watermark_files[] = substr($file, strlen(PHPWG_ROOT_PATH));
     522      }
    520523    }
    521524    $watermark_filemap = array( '' => '---' );
Note: See TracChangeset for help on using the changeset viewer.