From fbb52e8f475489566d02ceb7bfb43567a95f505a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 4 Mar 2006 12:46:15 +0000 Subject: [PATCH] fixed addressbook: customfields where not displayed if the name contained eg. upper case letters --- addressbook/inc/class.uiaddressbook.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addressbook/inc/class.uiaddressbook.inc.php b/addressbook/inc/class.uiaddressbook.inc.php index d10c10c177..a5be0803a2 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -332,14 +332,12 @@ $nonstd = $this->extrafields + $customfields; foreach($nonstd as $column) { - $test = strtolower($column); - if(isset($this->prefs[$test]) && $this->prefs[$test]) + if(isset($this->prefs[$column]) && $this->prefs[$column]) { - $showcol = $this->display_name($column[0]); + $showcol = $this->display_name($column); /* This must be a custom field */ if(!$showcol) { -// $showcol = $column; $showcol = $namedfields[$column]; } $cols .= ' ' . "\n";