]> git.mxchange.org Git - mailer.git/commitdiff
getArrayFromDirectory() does now exclude files with size below 50 Bytes which always...
authorRoland Häder <roland@mxchange.org>
Mon, 25 Jun 2012 23:02:44 +0000 (23:02 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 25 Jun 2012 23:02:44 +0000 (23:02 +0000)
inc/functions.php
inc/inc-functions.php

index 90f2b6d378b37e83312dd7bfb9c70e7e7a4fe79f..be6123f558b14507046bc426522461c4c9d3215f 100644 (file)
@@ -1872,6 +1872,9 @@ function getArrayFromDirectory ($baseDir, $prefix, $fileIncludeDirs = false, $ad
                } elseif (!isFileReadable($FQFN)) {
                        // Not readable so skip it
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'File ' . $FQFN . ' is not readable!');
+               } elseif (filesize($FQFN) < 50) {
+                       // Might be deprecated
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'File ' . $FQFN . ' is to small (' . filesize($FQFN) . ')!');
                        continue;
                }
 
index ece36ddfa9c31c2e05614f64cd10d55c0f5e08ec..8d3a036efeb95760e53291464c958f3c96196fe6 100644 (file)
@@ -121,7 +121,7 @@ function loadInclude ($inc) {
                // Is the include file there?
                if (!isIncludeReadable($inc)) {
                        // Not there so log it
-                       debug_report_bug(__FUNCTION__, __LINE__, sprintf("Include file %s not found.", $inc));
+                       debug_report_bug(__FUNCTION__, __LINE__, sprintf("Include file %s not found or deprecated.", $inc));
                } // END - if
        } // END - if