Fix warning if no form field parameters are set.
authorJan Schneider <jan@horde.org>
Sat, 26 Jun 2010 14:03:37 +0000 (16:03 +0200)
committerJan Schneider <jan@horde.org>
Sat, 26 Jun 2010 14:03:37 +0000 (16:03 +0200)
whups/lib/Ticket.php

index c0b0d3e..5b07809 100644 (file)
@@ -994,6 +994,9 @@ class TicketDetailsForm extends Horde_Form {
                     if (substr($field, 0, 10) == 'attribute_' &&
                         isset($attributes[substr($field, 10)])) {
                         $attribute = $attributes[substr($field, 10)];
+                        if (!$attribute['params']) {
+                            $attribute['params'] = array();
+                        }
                         $var = &$this->addVariable(
                             $attribute['human_name'],
                             'attribute_' . $attribute['id'],