From: jitendrapurohit Date: Mon, 29 Sep 2014 09:07:04 +0000 (+0530) Subject: is_numeric check on CRM-15368 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a329e91b91ff7c64ac102de4d36c7ce5748081d4;p=civicrm-core.git is_numeric check on CRM-15368 --- 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');