From: Tim Düsterhus Date: Sat, 3 Jan 2015 23:36:40 +0000 (+0100) Subject: Fix handling of 401 when updating package list X-Git-Tag: 2.1.0_Beta_3~41^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a63babd4fca88f915c17b2aabb4820ca61debc1e;p=GitHub%2FWoltLab%2FWCF.git Fix handling of 401 when updating package list --- 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) {