diff --git a/addressbook/inc/class.uiaddressbook.inc.php b/addressbook/inc/class.uiaddressbook.inc.php index bf15028be6..b5ec970af3 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -680,6 +680,7 @@ echo parse_navbar(); $custom = $this->fields->read_custom_fields(); + $customfields = array(); while(list($x,$y) = @each($custom)) { $customfields[$y['name']] = $y['title']; @@ -740,6 +741,7 @@ /* Read in user custom fields, if any */ $custom = $this->fields->read_custom_fields(); + $customfields = array(); while(list($x,$y) = @each($custom)) { $customfields[$y['name']] = $y['title']; @@ -853,6 +855,7 @@ $this->template->set_block('view_t','view_buttons','view_buttons'); $custom = $this->fields->read_custom_fields(); + $customfields = array(); while(list($x,$y) = @each($custom)) { $customfields[$y['name']] = $y['title'];