X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=0969cf0bc5579c6d4b6197fe561d0d80bb54ba78;hp=32ab18e167a96d05d2579c18defc13ba5049175d;hb=f151c251ccff7d143c8470e4451ce922ee40bd9d;hpb=971c31241c59b933d563f712a893b0c54ad33557 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 32ab18e167..0969cf0bc5 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -199,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