[pLog-svn] r5891 - plog/trunk/class/misc

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Sep 2 14:59:28 EDT 2007


Author: oscar
Date: 2007-09-02 14:59:28 -0400 (Sun, 02 Sep 2007)
New Revision: 5891

Modified:
   plog/trunk/class/misc/glob.class.php
Log:
Suppress warning messages in case of errors with opendir()


Modified: plog/trunk/class/misc/glob.class.php
===================================================================
--- plog/trunk/class/misc/glob.class.php	2007-09-02 09:20:38 UTC (rev 5890)
+++ plog/trunk/class/misc/glob.class.php	2007-09-02 18:59:28 UTC (rev 5891)
@@ -100,7 +100,7 @@
             // ugly error or warning message. so first check if $folder readable
             if( !file_exists( $folder )) return Array();
 
-			if ( $handle = opendir( $folder )) {
+			if ( $handle = @opendir( $folder )) {
             	$files = Array();
 
 				if( !is_array( $pattern ))



More information about the pLog-svn mailing list