From 0fe2f00858ff6417b41b66946f42f6f9941cc032 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 21 Nov 2014 22:20:36 -0500 Subject: [PATCH] Fix issue in custom pages with advanced registration mechanism - refs #7371 --- custompages/registration.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/custompages/registration.php b/custompages/registration.php index 9728d5b1b0..0a7fd42144 100755 --- a/custompages/registration.php +++ b/custompages/registration.php @@ -25,8 +25,10 @@ $content['form']->removeElement('extra_mail_notify_group_message'); $content['form']->removeElement('official_code'); $content['form']->removeElement('phone'); $content['form']->removeElement('submit'); -$content['form']->removeElement('status'); -$content['form']->removeElement('status'); +if (isset($content['form']->_elementIndex['status'])) { + $content['form']->removeElement('status'); + $content['form']->removeElement('status'); +} /** * Code to change the way QuickForm render html */