Fix handling of 401 when updating package list
authorTim Düsterhus <duesterhus@woltlab.com>
Sat, 3 Jan 2015 23:36:40 +0000 (00:36 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Sat, 3 Jan 2015 23:36:40 +0000 (00:36 +0100)
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

index 6bd7174613b59be0654dfe50b623d81c7d90c146..3e4b580572d12399b8f5b47a0876fe47c0ab16bb 100644 (file)
@@ -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) {