Ignore index.html in logs viewer

This commit is contained in:
slawkens 2020-05-10 11:45:04 +02:00
parent 8e04328482
commit e84933cf26

View File

@ -13,7 +13,7 @@ $title = 'Logs Viewer';
$files = array();
$aac_path_logs = BASE . 'system/logs/';
foreach (scandir($aac_path_logs, SCANDIR_SORT_ASCENDING) as $f) {
if ($f[0] === '.' || is_dir($aac_path_logs . $f)) {
if ($f[0] === '.' || is_dir($aac_path_logs . $f) || $f === 'index.html') {
continue;
}