From a2149accd16fcf1e8fb2b199290124b9c4777ab8 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 6 Aug 2013 04:17:51 +0530 Subject: [PATCH] notice fixes, for now using @ to suppress some strange notices --- CRM/Event/Form/Registration.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 12a1337976..ca96ddec56 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -626,7 +626,11 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { CRM_Core_Session::setStatus(ts('Some of the profile fields cannot be configured for this page.')); } $addCaptcha = FALSE; - $fields = array_diff_assoc($fields, $this->_fields); + + if (!empty($this->_fields)) { + $fields = @array_diff_assoc($fields, $this->_fields); + } + if (!CRM_Utils_Array::value('additional_participants', $this->_params[0]) && is_null($cid) ) { -- 2.25.1