X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=9060a90193d3f85512b0599ca1a7a87efe22a99b;hp=e68db149d1bfdfdc203fc6d9f24d6723ed066fe6;hb=f151c251ccff7d143c8470e4451ce922ee40bd9d;hpb=971c31241c59b933d563f712a893b0c54ad33557 diff --git a/inc/functions.php b/inc/functions.php index e68db149d1..9060a90193 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1865,7 +1865,7 @@ function getArrayFromDirectory ($baseDir, $prefix, $fileIncludeDirs = FALSE, $ad // We found .php file but should not search for them, why? reportBug(__FUNCTION__, __LINE__, 'We should find files with extension=' . $extension . ', but we found a PHP script. (baseFile=' . $baseFile . ')'); } - } elseif (($fileExtension == $extension) || (empty($extension))) { + } elseif ((($fileExtension == $extension) || (empty($extension))) && (isFileReadable($FQFN))) { // Other, generic file found if ($addBaseDir === TRUE) { // With base path