diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-08-04 17:38:31 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-08-04 17:38:31 +0200 |
commit | 1bccc80996e270f928c207cdd3090f4284abaea5 (patch) | |
tree | a21569c238cd6928951a86375f03cafbc8a81e88 /settings/admin.php | |
parent | d7e77f64263cb846ce37a02761b8c3e35c048a00 (diff) | |
download | nextcloud-server-1bccc80996e270f928c207cdd3090f4284abaea5.tar.gz nextcloud-server-1bccc80996e270f928c207cdd3090f4284abaea5.zip |
hide morelog button if there are no more log entries - bugfix for oc-1398
Diffstat (limited to 'settings/admin.php')
-rwxr-xr-x | settings/admin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php index 8369ee64e06..bf8e03c13c8 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -18,6 +18,8 @@ $forms=OC_App::getForms('admin'); $htaccessworking=OC_Util::ishtaccessworking(); $entries=OC_Log_Owncloud::getEntries(3); +$entriesremain=(count(OC_Log_Owncloud::getEntries(4)) > 3)?true:false; + function compareEntries($a,$b){ return $b->time - $a->time; } @@ -25,6 +27,7 @@ usort($entries, 'compareEntries'); $tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 )); $tmpl->assign('entries',$entries); +$tmpl->assign('entriesremain', $entriesremain); $tmpl->assign('htaccessworking',$htaccessworking); $tmpl->assign('forms',array()); foreach($forms as $form){ |