* adressbook: fix for Stylite Tracker bug#1152; Links for Addressbook where not shown anymore

This commit is contained in:
Klaus Leithoff 2011-01-13 12:14:38 +00:00
parent ac52f999c3
commit 9f45bea953

View File

@ -1418,6 +1418,7 @@ class addressbook_ui extends addressbook_bo
$content['created'] = $this->now_su; $content['created'] = $this->now_su;
unset($state); unset($state);
} }
if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML! if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML!
if($content && $_GET['makecp']) // copy the contact if($content && $_GET['makecp']) // copy the contact
@ -1445,7 +1446,7 @@ class addressbook_ui extends addressbook_bo
} }
else else
{ {
if (is_int($contact_id)) $content['link_to']['to_id'] = $contact_id; if (is_numeric($contact_id)) $content['link_to']['to_id'] = $contact_id;
} }
// automatic link new entries to entries specified in the url // automatic link new entries to entries specified in the url
if (!$contact_id && isset($_REQUEST['link_app']) && isset($_REQUEST['link_id']) && !is_array($content['link_to']['to_id'])) if (!$contact_id && isset($_REQUEST['link_app']) && isset($_REQUEST['link_id']) && !is_array($content['link_to']['to_id']))