MFB
authorJan Schneider <jan@horde.org>
Sun, 10 Oct 2010 21:31:26 +0000 (23:31 +0200)
committerJan Schneider <jan@horde.org>
Mon, 11 Oct 2010 20:23:35 +0000 (22:23 +0200)
framework/Form/Form.php
framework/Form/Form/Type.php

index a20476a..0bfad0b 100644 (file)
@@ -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;
     }
index 98e06d4..5a4ef59 100644 (file)
@@ -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')));
     }
 
 }