From: Matthias Schmidt Date: Mon, 16 Jul 2012 16:01:27 +0000 (+0200) Subject: Fixes setting default value in UserOptionEditor::create() X-Git-Tag: 2.0.0_Beta_1~987^2~10^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b4ac7bddaeaa50b063cd31ceac620a0020afa3a;p=GitHub%2FWoltLab%2FWCF.git Fixes setting default value in UserOptionEditor::create() --- diff --git a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php index 1cfb553b90..ab880f6a1f 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php @@ -29,7 +29,7 @@ class UserOptionEditor extends DatabaseObjectEditor { WCF::getDB()->getEditor()->addColumn('wcf'.WCF_N.'_user_option_value', 'userOption'.$userOption->optionID, self::getColumnDefinition($parameters['optionType'])); // add the default value to this column - if (isset($parameters['$defaultValue'])) { + if (isset($parameters['defaultValue'])) { $sql = "UPDATE wcf".WCF_N."_user_option_value SET userOption".$userOption->optionID." = ?"; $statement = WCF::getDB()->prepareStatement($sql);