From 943e3dcdd27eeb89ef8e9707f274a59699bf165e Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 12 Jul 2007 07:57:26 +0000 Subject: [PATCH] MDL-10382 new fix, I hope it works now --- lib/formslib.php | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5