From 95d05b09600321065d2ff3c2acd98dc5e4b10ff3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 8 Oct 2001 15:43:57 +0000 Subject: [PATCH] fix for edit: url does now get saved --- 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 9d3ddba63e..df9d7e0822 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -1157,10 +1157,8 @@ $fields['bday'] = $entry['bday_month'] . '/' . $bday_day . '/' . $entry['bday_year']; } - if ($entry['url'] == 'http://') - { - $fields['url'] = ''; - } + $fields['url'] = $entry['url'] == 'http://' ? '' : $entry['url']; + $fields['org_name'] = $entry['company']; $fields['org_unit'] = $entry['department'];