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/ajax | |
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/ajax')
-rw-r--r-- | settings/ajax/getlog.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php index d9e80de37ba..d5af22ac339 100644 --- a/settings/ajax/getlog.php +++ b/settings/ajax/getlog.php @@ -14,4 +14,4 @@ $count=(isset($_GET['count']))?$_GET['count']:50; $offset=(isset($_GET['offset']))?$_GET['offset']:0; $entries=OC_Log_Owncloud::getEntries($count,$offset); -OC_JSON::success(array("data" => OC_Util::sanitizeHTML($entries))); +OC_JSON::success(array("data" => OC_Util::sanitizeHTML($entries), "remain"=>(count(OC_Log_Owncloud::getEntries(1,$offset + $offset)) != 0)?true:false)); |