Explorar o código

Merge branch '7371' into 1.9.x

Yannick Warnier %!s(int64=10) %!d(string=hai) anos
pai
achega
09d168e205
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      custompages/registration.php

+ 4 - 2
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
  */