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 */