summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-02 15:26:42 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-02 15:26:42 -0400
commit31d623f426ac7475588b771036ecfeb2f69b9fe5 (patch)
tree644d3392ae94487bcdfc6c666393740387777a45 /lib
parent6d37b8567b86af24aaa8d964ca893fb6a5349cd6 (diff)
downloadnextcloud-server-31d623f426ac7475588b771036ecfeb2f69b9fe5.tar.gz
nextcloud-server-31d623f426ac7475588b771036ecfeb2f69b9fe5.zip
Fix log viewing bug
Diffstat (limited to 'lib')
-rw-r--r--lib/log/owncloud.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log/owncloud.php b/lib/log/owncloud.php
index 881c67d2664..0b7a231d304 100644
--- a/lib/log/owncloud.php
+++ b/lib/log/owncloud.php
@@ -73,7 +73,7 @@ class OC_Log_Owncloud {
$end=max(count($contents)-$offset-1, 0);
$start=max($end-$limit,0);
$i=$end;
- while(count($entries)<$limit){
+ while($i>$start){
$entry=json_decode($contents[$i]);
if($entry->level>=$minLevel){
$entries[]=$entry;