Fixes setting default value in UserOptionEditor::create()
authorMatthias Schmidt <gravatronics@live.com>
Mon, 16 Jul 2012 16:01:27 +0000 (18:01 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 16 Jul 2012 16:01:27 +0000 (18:01 +0200)
wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php

index 1cfb553b902271c248832011c8d622ee7af7fb4d..ab880f6a1f9c8b21723c8c05cfc888516c0ea2bc 100644 (file)
@@ -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);