From 8c0f7e0848e7234b2454c3a0e8b1a7f6d6b4c3ba Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Thu, 14 Mar 2013 14:16:08 +0530 Subject: [PATCH] CRM-12062 : minor bug found by failing test case WebTest_Event_AddEventTest::testAddPaidEventNoTemplate --- CRM/Event/Form/Registration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 8895790056..9b1c308020 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -1230,7 +1230,7 @@ WHERE v.option_group_id = g.id } } // check if user has permission, CRM-12062 - else if (CRM_Contact_BAO_Contact_Permission::allow($tempID)) { + else if ($tempID && CRM_Contact_BAO_Contact_Permission::allow($tempID)) { return $tempID; } -- 2.25.1