From: Michael J. Rubinsky Date: Sat, 14 Aug 2010 00:22:00 +0000 (-0400) Subject: params might not be set, like with the True/False type for example X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=898e4eae7da1db1f62ac16e06f6d252fc71ca41e;p=horde.git params might not be set, like with the True/False type for example --- diff --git a/whups/admin/index.php b/whups/admin/index.php index 9645b6d1e..79476d737 100644 --- a/whups/admin/index.php +++ b/whups/admin/index.php @@ -897,7 +897,7 @@ case 'addattributedescform_reload': $vars->get('attribute_name'), $vars->get('attribute_description'), $vars->get('attribute_type'), - $vars->get('attribute_params'), + $vars->get('attribute_params', array()), $vars->get('attribute_required')); if (!is_a($result, 'PEAR_Error')) { $typename = $whups_driver->getType($vars->get('type')); @@ -968,7 +968,7 @@ case 'editattributedescstep2form_reload': $info['attribute_name'], $info['attribute_description'], $info['attribute_type'], - $info['attribute_params'], + !empty($info['attribute_params']) ? $info['attribute_params'] : array(), $info['attribute_required']); if (!is_a($result, 'PEAR_Error')) { $notification->push( _("The attribute has been modified."),