Index: lib/class.tx_commerce_attribute_value.php =================================================================== --- lib/class.tx_commerce_attribute_value.php (revision 33328) +++ lib/class.tx_commerce_attribute_value.php (working copy) @@ -74,21 +74,16 @@ var $icon=''; - - - - - - /** - * Constructor Class - * @param uid integer uid or attribute - * @param lang_uid integer language uid, default 0 - */ - - function tx_commerce_attribute_value($uid,$lang_uid=0) - { - return $this->init($uid,$lang_uid) ; - } + /** + * Constructor Class + * @param uid integer uid or attribute + * @param lang_uid integer language uid, default 0 + */ + function tx_commerce_attribute_value($uid = false, $lang_uid = 0) { + if($uid) { + return $this->init($uid, $lang_uid); + } + } /**