Преглед на файлове

Fix warning about course password form element: Illegal string offset 'class' in main/inc/lib/pear/HTML/QuickForm/password.php on line 53

Yannick Warnier преди 9 години
родител
ревизия
aecadd76df
променени са 2 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 1
      main/auth/set_temp_password.php
  2. 0 2
      main/inc/lib/pear/HTML/QuickForm/password.php

+ 1 - 1
main/auth/set_temp_password.php

@@ -33,7 +33,7 @@ $form = new FormValidator('set_temp_password', 'POST', api_get_self().'?course_i
 $form->addElement('header', get_lang('CourseRequiresPassword'));
 $form->addElement('hidden', 'course_id', $course_id);
 $form->addElement('hidden', 'session_id', $session_id);
-$form->addElement('password', 'course_password', null, get_lang('Password'));
+$form->addElement('password', 'course_password', get_lang('Password'));
 $form->addButtonSave(get_lang('Accept'));
 
 if ($form->validate()) {

+ 0 - 2
main/inc/lib/pear/HTML/QuickForm/password.php

@@ -38,14 +38,12 @@ class HTML_QuickForm_password extends HTML_QuickForm_text
 
     /**
      * Class constructor
-     *
      * @param     string    $elementName    (optional)Input field name attribute
      * @param     string    $elementLabel   (optional)Input field label
      * @param     mixed     $attributes     (optional)Either a typical HTML attribute string
      *                                      or an associative array
      * @since     1.0
      * @access    public
-     * @return    void
      * @throws
      */
     public function __construct($elementName=null, $elementLabel=null, $attributes=null)