Update of /cvsroot/phplib/php-lib/php/auth/sql
In directory usw-pr-cvs1:/tmp/cvs-serv10889
Modified Files:
auth.inc
Log Message:
Added a completely untested fix to bug id #545551. People shouldn't be trying to use the devel tree.
Index: auth.inc
===================================================================
RCS file: /cvsroot/phplib/php-lib/php/auth/sql/auth.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** auth.inc 13 Apr 2000 13:06:56 -0000 1.1
--- auth.inc 25 Apr 2002 05:30:55 -0000 1.2
***************
*** 189,204 ****
function translate_error () {
! switch ($this->auth["error"]) {
case 'fill':
$this->auth["error"]="Please fill in the required registration information. Thank you.";
! break;
case 'invalid':
$this->auth["error"]="Either your username or password are invalid.<br>Please try again.";
! break;
case 'nomatch':
$this->auth["error"]="Password and repeated password do not match. Please try again.";
! break;
case 'uname_exists':
$this->auth["error"]="This username is already taken. Please choose a different one.";
}
}
--- 189,206 ----
function translate_error () {
! if (isset($this->auth["error"])) {
! switch ($this->auth["error"]) {
case 'fill':
$this->auth["error"]="Please fill in the required registration information. Thank you.";
! break;
case 'invalid':
$this->auth["error"]="Either your username or password are invalid.<br>Please try again.";
! break;
case 'nomatch':
$this->auth["error"]="Password and repeated password do not match. Please try again.";
! break;
case 'uname_exists':
$this->auth["error"]="This username is already taken. Please choose a different one.";
+ }
}
}
|