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

1.10.x
Yannick Warnier 10 years ago
parent ebf98ef7de
commit aecadd76df
  1. 2
      main/auth/set_temp_password.php
  2. 2
      main/inc/lib/pear/HTML/QuickForm/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()) {

@ -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)

Loading…
Cancel
Save