From 9f444cf4ec40f6be2601c88cd0be188e44b0062d Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Sun, 28 Mar 2021 17:45:53 +0700 Subject: [PATCH] Update PullsModel.php --- .../com_patchtester/PatchTester/Model/PullsModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php index 91caeb1..3ae922e 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php @@ -535,9 +535,9 @@ class PullsModel extends AbstractModel // Default this to being a single page of results $lastPage = 1; - if (isset($pullsResponse->headers['Link'])) + if (isset($pullsResponse->headers['link'])) { - $linkHeader = $pullsResponse->headers['Link']; + $linkHeader = $pullsResponse->headers['link']; // The `joomla/http` 2.0 package uses PSR-7 Responses which has a different format for headers, check for this if (is_array($linkHeader))