]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10382 new fix, I hope it works now
authorskodak <skodak>
Thu, 12 Jul 2007 07:57:26 +0000 (07:57 +0000)
committerskodak <skodak>
Thu, 12 Jul 2007 07:57:26 +0000 (07:57 +0000)
lib/formslib.php

index bd03590cc59196891cb978d2c51db32d8e28045c..358fe1ba4af1ff7489b5c91fed8e82bd851cf4eb 100644 (file)
@@ -1246,6 +1246,9 @@ function validate_' . $this->_formName . '(frm) {
 
     function _getElNamesRecursive($element, $group=null){
         if ($group==null){
+            if (!$this->elementExists($element)) {
+                return array();
+            }
             $el = $this->getElement($element);
         } else {
             $el = &$element;