New function isDirectory() introduced, fixed GET_DIR_AS_ARRAY() (replaces scandir())
[mailer.git] / inc / modules / admin / what-logs.php
index 794ecff606a3fc7aa226d59b915b504177a49ff5..33c537b6a2d3eeb6b99e372d71bf670a6c9f5831 100644 (file)
@@ -90,7 +90,7 @@ if (REQUEST_ISSET_GET(('access'))) {
 } else {
        // List access logfiles
        $dir = constant('PATH') . getConfig('logs_base') . "/";
 } else {
        // List access logfiles
        $dir = constant('PATH') . getConfig('logs_base') . "/";
-       if (is_dir($dir)) {
+       if (isDirectory($dir)) {
                // logs directory does exist
                OUTPUT_HTML("<ol>");
                $handle = opendir($dir) or mxchange_die("Cannot open directory ".getConfig('logs_base')."!");
                // logs directory does exist
                OUTPUT_HTML("<ol>");
                $handle = opendir($dir) or mxchange_die("Cannot open directory ".getConfig('logs_base')."!");