From: skodak Date: Thu, 12 Jul 2007 07:57:26 +0000 (+0000) Subject: MDL-10382 new fix, I hope it works now X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=943e3dcdd27eeb89ef8e9707f274a59699bf165e;p=moodle.git MDL-10382 new fix, I hope it works now --- diff --git a/lib/formslib.php b/lib/formslib.php index bd03590cc5..358fe1ba4a 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -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;