CRM-16580 avoid matching cid to user id if null
authorEileen McNaughton <eileen@fuzion.co.nz>
Fri, 29 May 2015 02:06:55 +0000 (14:06 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Fri, 29 May 2015 02:54:59 +0000 (14:54 +1200)
CRM/Core/Form.php

index 6441a57502e352f6997b110417323140cd101e66..51d47be869d82abb7b23a4714902fb2888450601 100644 (file)
@@ -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;
     }