From 898e4eae7da1db1f62ac16e06f6d252fc71ca41e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 13 Aug 2010 20:22:00 -0400 Subject: [PATCH] params might not be set, like with the True/False type for example --- whups/admin/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."), -- 2.11.0