Exclude directories now
[mailer.git] / inc / wrapper-functions.php
index 32ab18e167a96d05d2579c18defc13ba5049175d..0969cf0bc5579c6d4b6197fe561d0d80bb54ba78 100644 (file)
@@ -199,7 +199,7 @@ function isDirectory ($FQFN) {
                $baseName = basename($FQFN);
 
                // Check it
                $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
        } // END - if
 
        // Return the result