Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2681606
D25614.1734647938.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
735 B
Referenced Files
None
Subscribers
None
D25614.1734647938.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 22:38 (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015726
Default Alt Text
D25614.1734647938.diff (735 B)
Attached To
Mode
D25614: Explicitly cast "limit" (page size) API parameter to int
Attached
Detach File
Event Timeline
Log In to Comment