Page MenuHomePhorge

D25614.1737892333.diff
No OneTemporary

D25614.1737892333.diff

diff --git a/src/view/control/AphrontCursorPagerView.php b/src/view/control/AphrontCursorPagerView.php
--- a/src/view/control/AphrontCursorPagerView.php
+++ b/src/view/control/AphrontCursorPagerView.php
@@ -72,8 +72,10 @@
public function sliceResults(array $results) {
if (count($results) > $this->getPageSize()) {
- $offset = ($this->beforeID ? count($results) - $this->getPageSize() : 0);
- $results = array_slice($results, $offset, $this->getPageSize(), true);
+ $offset = ($this->beforeID ? count($results) -
+ (int)$this->getPageSize() : 0);
+ $results = array_slice($results, $offset,
+ (int)$this->getPageSize(), true);
$this->moreResults = true;
}
return $results;

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 26, 11:52 (4 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1116203
Default Alt Text
D25614.1737892333.diff (735 B)

Event Timeline