Skip to content

Commit 2b39f0e

Browse files
committed
[#324] Fix fetch data stopping after page 1
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
1 parent 900d228 commit 2b39f0e

File tree

1 file changed

+2
-2
lines changed
  • administrator/components/com_patchtester/PatchTester/Model

1 file changed

+2
-2
lines changed

administrator/components/com_patchtester/PatchTester/Model/PullsModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ public function requestFromGithub($page)
535535
// Default this to being a single page of results
536536
$lastPage = 1;
537537

538-
if (isset($pullsResponse->headers['Link']))
538+
if (isset($pullsResponse->headers['link']))
539539
{
540-
$linkHeader = $pullsResponse->headers['Link'];
540+
$linkHeader = $pullsResponse->headers['link'];
541541

542542
// The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this
543543
if (is_array($linkHeader))

0 commit comments

Comments
 (0)