diff options
Diffstat (limited to 'lib/log/owncloud.php')
-rw-r--r-- | lib/log/owncloud.php | 2 |
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; |