diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index f020a1004a..9e514e3c49 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -163,7 +163,7 @@ global $phpgw, $phpgw_info; static $name_list; - if($name_list[$account_lid]) + if($name_list[$account_lid] && $name_list[$account_lid] != '') { return $name_list[$account_lid]; } diff --git a/phpgwapi/inc/class.accounts_sql_wip.inc.php b/phpgwapi/inc/class.accounts_sql_wip.inc.php index 4d33adc959..9d20a54590 100644 --- a/phpgwapi/inc/class.accounts_sql_wip.inc.php +++ b/phpgwapi/inc/class.accounts_sql_wip.inc.php @@ -194,7 +194,7 @@ global $phpgw, $phpgw_info; static $name_list; - if($name_list[$account_lid]) + if($name_list[$account_lid] && $name_list[$account_lid] != '') { return $name_list[$account_lid]; }