X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=0969cf0bc5579c6d4b6197fe561d0d80bb54ba78;hp=683fc0d955cde726b5df2cf26774512b631de5df;hb=f151c251ccff7d143c8470e4451ce922ee40bd9d;hpb=155492a5b96cec674846973a8524238b0365a848 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 683fc0d955..0969cf0bc5 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -88,8 +88,7 @@ function writeToFile ($FQFN, $content, $aquireLock = FALSE) { } } else { // Write it with fopen - $fp = fopen($FQFN, 'w') - or reportBug(__FUNCTION__, __LINE__, 'Cannot write to file ' . basename($FQFN) . '!'); + $fp = fopen($FQFN, 'w') or reportBug(__FUNCTION__, __LINE__, 'Cannot write to file ' . basename($FQFN) . '!'); // Aquire a lock? if ($aquireLock === TRUE) { @@ -200,7 +199,7 @@ function isDirectory ($FQFN) { $baseName = basename($FQFN); // Check it - $GLOBALS[__FUNCTION__][$FQFN] = ((is_dir($FQFN)) && ($baseName != '.') && ($baseName != '..') && ($baseName != '.svn')); + $GLOBALS[__FUNCTION__][$FQFN] = ((is_dir($FQFN)) && (!in_array($baseName, array('.', '..', '.svn')))); } // END - if // Return the result