Get contact link working with et2

This commit is contained in:
Nathan Gray 2013-02-08 13:46:08 +00:00
parent b802aa64a8
commit a99deb4473

View File

@ -1606,6 +1606,12 @@ else
{ {
$old_link_id = (int)$content['info_link_id']; $old_link_id = (int)$content['info_link_id'];
list($app,$id) = is_array($content['info_contact']) ? $content['info_contact'] : explode(':',$content['info_contact'], 2); list($app,$id) = is_array($content['info_contact']) ? $content['info_contact'] : explode(':',$content['info_contact'], 2);
// eTemplate2 returns the array all ready
if(!$app && is_array($content['info_contact']))
{
$app = $content['info_contact']['app'];
$id = $content['info_contact']['id'];
}
if($app && $id) if($app && $id)
{ {
if(!is_array($content['link_to'])) if(!is_array($content['link_to']))