Quellcode durchsuchen

Merge branch '7371' into 1.9.x

Yannick Warnier vor 10 Jahren
Ursprung
Commit
09d168e205
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  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
  */