From a329e91b91ff7c64ac102de4d36c7ce5748081d4 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 29 Sep 2014 14:37:04 +0530 Subject: [PATCH] is_numeric check on CRM-15368 --- CRM/Contact/BAO/Contact/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact/Utils.php b/CRM/Contact/BAO/Contact/Utils.php index e7161fd5d3..da8e28d223 100644 --- a/CRM/Contact/BAO/Contact/Utils.php +++ b/CRM/Contact/BAO/Contact/Utils.php @@ -286,7 +286,7 @@ UNION */ static function createCurrentEmployerRelationship($contactID, $organization, $previousEmployerID = NULL, $newContact = FALSE) { //if organization name is passed. CRM-15368 - if ($newContact && is_string($organization)) { + if ($newContact && !is_numeric($organization)) { $organizationParams['organization_name'] = $organization; $dedupeParams = CRM_Dedupe_Finder::formatParams($organizationParams, 'Organization'); -- 2.25.1