From 4b4ac7bddaeaa50b063cd31ceac620a0020afa3a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 16 Jul 2012 18:01:27 +0200 Subject: [PATCH] Fixes setting default value in UserOptionEditor::create() --- .../files/lib/data/user/option/UserOptionEditor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1