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 "