summaryrefslogtreecommitdiffstats
path: root/lib/log/owncloud.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log/owncloud.php')
-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;