diff --git a/addressbook/view.php b/addressbook/view.php index 3d19bb73c6..9c1c5850ee 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -210,25 +210,40 @@ { if ($referer) { - $t->set_var('edit_link','
'); + $t->set_var('edit_link',''); } else { - $t->set_var('edit_link',''); + $t->set_var('edit_link',''); } $t->set_var('edit_button',''); } $copylink = ''; - $vcardlink = ''; - if ($referer) + if ($fields[0]['n_family'] && $fields[0]['n_given']) { - $referer = ereg_replace('/phpgroupware','',$referer); - $donelink = ''; + $vcardlink = ''; } else { - $donelink = ''; + $vcardlink = lang('no').' '.lang('vcard'); + } + if ($referer) + { + $referer = ereg_replace('/phpgroupware','',$referer); + $donelink = ''; + } + else + { + $donelink = ''; } $t->set_var("access_link",$access_link);