From aa6230184de8a4b601813b4a892eb7b5749658d6 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 1 Jan 2013 17:16:32 +0100 Subject: [PATCH] Fixes bug in StylePackageInstallationPlugin if default style is uninstalled --- .../package/plugin/StylePackageInstallationPlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php index c8c368afe4..1362242a0b 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/StylePackageInstallationPlugin.class.php @@ -71,7 +71,7 @@ class StylePackageInstallationPlugin extends AbstractPackageInstallationPlugin { $styles = $styleList->getObjects(); if (!empty($styles)) { - $styleEditor = new StyleEditor($styles[0]); + $styleEditor = new StyleEditor(current($styles)); $styleEditor->setAsDefault(); } } -- 2.20.1