From: Matthias Schmidt Date: Wed, 17 Oct 2018 17:28:22 +0000 (+0200) Subject: Fix searching language category in language file via GUI X-Git-Tag: 5.2.0_Alpha_1~612 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e63fab4a7ea44512ef95ef64ed0c55f76548a672;p=GitHub%2FWoltLab%2FWCF.git Fix searching language category in language file via GUI See #2545 --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 21552c0d35..7f6c809ac5 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -772,7 +772,7 @@ XML; /** @var \DOMElement $languageCategory */ foreach ($document->documentElement->childNodes as $languageCategory) { - if ($languageCategory->getAttribute('name') === $languageCategoryName) { + if ($languageCategory instanceof \DOMElement && $languageCategory->getAttribute('name') === $languageCategoryName) { $languageCategory->appendChild($languageItem); break; }