fixed addressbook: customfields where not displayed if the name contained eg. upper case letters

This commit is contained in:
Ralf Becker 2006-03-04 12:46:15 +00:00
parent 785a3e18c6
commit fbb52e8f47

View File

@ -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 .= ' <td height="21">' . "\n";