From: Jan Schneider Date: Sun, 10 Oct 2010 21:31:26 +0000 (+0200) Subject: MFB X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=67aac71c18e9eedfb6e32894e22a86a8afcab90a;p=horde.git MFB --- diff --git a/framework/Form/Form.php b/framework/Form/Form.php index a20476aac..0bfad0b1d 100644 --- a/framework/Form/Form.php +++ b/framework/Form/Form.php @@ -160,6 +160,9 @@ class Horde_Form { throw new Horde_Exception(sprintf('Nonexistant class "%s" for field type "%s"', $type_class, $type)); } $type_ob = new $type_class(); + if (!$params) { + $params = array(); + } call_user_func_array(array($type_ob, 'init'), $params); return $type_ob; } diff --git a/framework/Form/Form/Type.php b/framework/Form/Form/Type.php index 98e06d49c..5a4ef59a9 100644 --- a/framework/Form/Form/Type.php +++ b/framework/Form/Form/Type.php @@ -596,7 +596,7 @@ class Horde_Form_Type_longtext extends Horde_Form_Type_text { 'cols' => array('label' => _("Number of columns"), 'type' => 'int'), 'helper' => array('label' => _("Helpers"), - 'type' => 'array'))); + 'type' => 'stringarray'))); } }