From da43c002ff57ab4b329fa681d53c846ed8b8fae7 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Tue, 19 Dec 2006 11:18:06 +0000 Subject: [PATCH] fix for MDL-7937 'Fatal error: Call to a member function on a non-object in /var/www/dev/lib/pear/HTML/QuickForm.php on line 602 error' --- lib/formslib.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/formslib.php b/lib/formslib.php index f37f70ca6d..146248704c 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -671,28 +671,6 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless { return $this->_showAdvanced; } - /** - * Adds an element into the form - * - * If $element is a string representing element type, then this - * method accepts variable number of parameters, their meaning - * and count depending on $element - * - * @param mixed $element element object or type of element to add (text, textarea, file...) - * @since 1.0 - * @return object reference to element - * @access public - * @throws HTML_QuickForm_Error - */ - function addElement($element) - { - //call parent with a variable ammount of arguments - $args = func_get_args(); - $parent_name = get_parent_class($this); - //static method call - - return call_user_func_array(array($parent_name, 'addElement'), $args); - } /** * Accepts a renderer -- 2.39.5