diff options
author | Simon Rettberg | 2016-09-09 11:36:35 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-09 11:36:35 +0200 |
commit | 7a09b0b49f0e2dbde72f9a3587a7d94ac5e5edb8 (patch) | |
tree | 9e17f408b9232be5cacc8ff741d49e410c91bf52 /modules-available | |
parent | Update translations (diff) | |
download | slx-admin-7a09b0b49f0e2dbde72f9a3587a7d94ac5e5edb8.tar.gz slx-admin-7a09b0b49f0e2dbde72f9a3587a7d94ac5e5edb8.tar.xz slx-admin-7a09b0b49f0e2dbde72f9a3587a7d94ac5e5edb8.zip |
[systemstatus] Fix ldadp log
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/systemstatus/page.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/systemstatus/page.inc.php b/modules-available/systemstatus/page.inc.php index cf80d1cc..bcce816b 100644 --- a/modules-available/systemstatus/page.inc.php +++ b/modules-available/systemstatus/page.inc.php @@ -271,6 +271,7 @@ class Page_SystemStatus extends Page protected function ajaxLdadpLog() { + $haveSysconfig = Module::isAvailable('sysconfig'); $files = glob('/var/log/ldadp/*.log', GLOB_NOSORT); if ($files === false || empty($files)) echo('No logs found'); $now = time(); @@ -279,7 +280,7 @@ class Page_SystemStatus extends Page if ($now - $mod > 86400) continue; // New enough - handle preg_match(',/(\d+)\.log,', $file, $out); - $module = ConfigModule::get($out[1]); + $module = $haveSysconfig ? ConfigModule::get($out[1]) : false; if ($module === false) { echo '<h4>Module ', $out[1], '</h4>'; } else { |