[pLog-svn] r5836 - plog/trunk/class/file
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Aug 17 17:32:43 EDT 2007
Author: oscar
Date: 2007-08-17 17:32:43 -0400 (Fri, 17 Aug 2007)
New Revision: 5836
Modified:
plog/trunk/class/file/file.class.php
Log:
Added some extra '@' to prevent some php function calls from logging anything when errors occur (it's enough for us to collect the error code)
Modified: plog/trunk/class/file/file.class.php
===================================================================
--- plog/trunk/class/file/file.class.php 2007-08-17 21:29:16 UTC (rev 5835)
+++ plog/trunk/class/file/file.class.php 2007-08-17 21:32:43 UTC (rev 5836)
@@ -326,17 +326,17 @@
$firstPart = substr($dirName,0,strrpos($dirName, "/" ));
if(file_exists($firstPart)){
- if(!mkdir($dirName,$mode)) return false;
- chmod( $dirName, $mode );
+ if(!@mkdir($dirName,$mode)) return false;
+ @chmod( $dirName, $mode );
} else {
File::createDir( $firstPart, $mode, $recursive );
- if(!mkdir($dirName,$mode)) return false;
- chmod( $dirName, $mode );
+ if(!@mkdir($dirName,$mode)) return false;
+ @chmod( $dirName, $mode );
}
}
else {
- if( mkdir( $dirName )) {
- chmod( $dirName, $mode );
+ if( @mkdir( $dirName )) {
+ @chmod( $dirName, $mode );
return( true );
}
else {
More information about the pLog-svn
mailing list