summaryrefslogtreecommitdiffstats
path: root/settings/admin.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-08-04 17:38:31 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-08-04 17:38:31 +0200
commit1bccc80996e270f928c207cdd3090f4284abaea5 (patch)
treea21569c238cd6928951a86375f03cafbc8a81e88 /settings/admin.php
parentd7e77f64263cb846ce37a02761b8c3e35c048a00 (diff)
downloadnextcloud-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-xsettings/admin.php3
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){