From 48a76e2354353a2b8970a5d1add7ca61590eb9bd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 11 Oct 2006 12:34:22 +0000 Subject: [PATCH] fixed under some circumstances not working fileas title creation --- addressbook/inc/class.bocontacts.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.bocontacts.inc.php b/addressbook/inc/class.bocontacts.inc.php index 6a6715d248..53aac16d9b 100755 --- a/addressbook/inc/class.bocontacts.inc.php +++ b/addressbook/inc/class.bocontacts.inc.php @@ -243,7 +243,8 @@ class bocontacts extends socontacts if (strstr($type,'n_fn')) $contact['n_fn'] = $this->fullname($contact); - $fileas = str_replace(array_keys($contact),array_values($contact),$type); + $fileas = str_replace(array('n_prefix','n_given','n_middle','n_family','n_suffix','n_fn','org_name'), + array($contact['n_prefix'],$contact['n_given'],$contact['n_middle'],$contact['n_family'],$contact['n_suffix'],$contact['n_fn'],$contact['org_name']),$type); return $fileas{0} == ':' ? substr($fileas,2) : $fileas; }