From: Matthias Schmidt Date: Sun, 24 Feb 2019 16:04:43 +0000 (+0100) Subject: Suppress warning about undefined field X-Git-Tag: 5.2.0_Alpha_1~263 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=387a236501003a7f652accfff2ed74accdf1d81f;p=GitHub%2FWoltLab%2FWCF.git Suppress warning about undefined field See #2509 --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php index 03d603161d..f5296f769f 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/tag/TagFormField.class.php @@ -70,8 +70,11 @@ class TagFormField extends AbstractFormField implements IObjectTypeFormField { } $languageIDs = []; - if ($object->languageID !== null) { - $languageIDs[] = $object->languageID; + + /** @noinspection PhpUndefinedFieldInspection */ + $objectLanguageId = $object->languageID; + if ($objectLanguageId !== null) { + $languageIDs[] = $objectLanguageId; } $tags = TagEngine::getInstance()->getObjectTags($this->getObjectType()->objectType, $objectID, $languageIDs);