From abec5fb5e5aa12c05b9c6d1e76046fff8ad33bee Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 10 Dec 2021 18:55:02 -0700 Subject: [PATCH] Use the labels array which will always exist. --- app/contacts/contact_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 2cc7b28919..5196393e2c 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -2047,7 +2047,7 @@ if (permission_exists('contact_url_view')) { foreach($contact_url_labels as $label) { $url_label_options[] = ""; } - $url_label_found = (in_array($url_label, $_SESSION["contact"]["url_label"])) ? true : false; + $url_label_found = (in_array($url_label, $contact_url_labels)) ? true : false; echo " \n"; echo " \n"; echo (is_array($relation_label_options)) ? implode("\n", $relation_label_options) : null;