Skip to content

Commit 4fa8b8f

Browse files
ascwebWebklex
authored andcommitted
Paginate fix (#212)
$per_page = 5 in return overwrites the passed value
1 parent 96c441e commit 4fa8b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IMAP/Query/Query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function paginate($per_page = 5, $page = null, $page_name = 'imap_page'){
204204
$this->page = $page > $this->page ? $page : $this->page;
205205
$this->limit = $per_page;
206206

207-
return $this->get()->paginate($per_page = 5, $this->page, $page_name);
207+
return $this->get()->paginate($per_page, $this->page, $page_name);
208208
}
209209

210210
/**
@@ -432,4 +432,4 @@ public function setFetchFlags($fetch_flags) {
432432
$this->fetch_flags = $fetch_flags;
433433
return $this;
434434
}
435-
}
435+
}

0 commit comments

Comments
 (0)