From a63babd4fca88f915c17b2aabb4820ca61debc1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 4 Jan 2015 00:36:40 +0100 Subject: [PATCH] Fix handling of 401 when updating package list --- .../files/lib/system/package/PackageUpdateDispatcher.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index 6bd7174613..3e4b580572 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -53,7 +53,7 @@ class PackageUpdateDispatcher extends SingletonFactory { } catch (PackageUpdateUnauthorizedException $e) { $reply = $e->getRequest()->getReply(); - $errorMessage = reset($reply['httpHeaders']); + list($errorMessage) = reset($reply['httpHeaders']); } if ($errorMessage) { -- 2.20.1