From 3a21238c567c5b4b71fd24f6d8f462336e455232 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sat, 26 Jun 2010 16:03:37 +0200 Subject: [PATCH] Fix warning if no form field parameters are set. --- whups/lib/Ticket.php | 3 +++ 1 file changed, 3 insertions(+) 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'], -- 2.11.0