From 18406494abdaf672028c63cd997552f627e098b9 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 29 May 2015 14:06:55 +1200 Subject: [PATCH] CRM-16580 avoid matching cid to user id if null --- CRM/Core/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 6441a57502..51d47be869 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1603,7 +1603,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $userID = $this->getLoggedInUserContactID(); - if ($tempID == $userID) { + if (!is_null($tempID) && $tempID === $userID) { return (int) $userID; } -- 2.25.1