From: Jan Schneider Date: Sat, 26 Jun 2010 14:03:37 +0000 (+0200) Subject: Fix warning if no form field parameters are set. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3a21238c567c5b4b71fd24f6d8f462336e455232;p=horde.git Fix warning if no form field parameters are set. --- diff --git a/whups/lib/Ticket.php b/whups/lib/Ticket.php index c0b0d3e7b..5b0780927 100644 --- a/whups/lib/Ticket.php +++ b/whups/lib/Ticket.php @@ -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'],