2
0
mirror of https://github.com/slawkens/myaac.git synced 2025-05-11 16:39:21 +02:00
This commit is contained in:
slawkens1 2018-03-24 01:11:22 +01:00
parent eab416c0b4
commit 68bbf4182f

@ -28,15 +28,12 @@ foreach(scandir($aac_path_logs) as $f) {
}
$server_path_logs = $config['server_path'] . 'logs/';
if(!file_exists($server_path_logs))
$server_path_logs = $config['data_path'] . 'logs/';
if(!file_exists($server_path_logs)) {
echo '</table>Logs are not available on this server.';
return;
$server_path_logs = $config['data_path'] . 'logs/';
}
foreach(scandir($server_path_logs) as $f) {
if(file_exists($server_path_logs)) {
foreach(scandir($server_path_logs) as $f) {
if($f[0] == '.' || $f == '..')
continue;
@ -51,6 +48,7 @@ foreach(scandir($server_path_logs) as $f) {
}
$files[] = array($f, $server_path_logs);
}
}
$i = 0;