Ignore:
Timestamp:
Dec 8, 2010, 9:52:19 PM (13 years ago)
Author:
Eric
Message:

merge from trunk to branch 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Register_FluxBB/branches/2.3/include/functions.inc.php

    r7983 r8044  
    133133
    134134
    135 function Register_FluxBB_RegistrationCheck($err, $register_user)
    136 {
    137   global $errors, $conf;
     135function Register_FluxBB_RegistrationCheck($errors, $user)
     136{
     137  global $conf;
    138138 
    139139  //Because FluxBB is case insensitive on login name, we have to check if a similar login already exists in FluxBB's user table
     
    142142SELECT username
    143143  FROM ".FluxBB_USERS_TABLE."
    144 WHERE LOWER(".stripslashes('username').") = '".strtolower($register_user['username'])."'
    145 ;";
    146 
    147     $count = pwg_db_num_rows(pwg_query($query));
    148 
    149     if ($count > 0)
    150     {
    151       return l10n('this login is already used');
    152     }
     144WHERE LOWER(".stripslashes('username').") = '".strtolower($user['username'])."'
     145;";
     146
     147  $count = pwg_db_num_rows(pwg_query($query));
     148
     149  if ($count > 0)
     150  {
     151    array_push($errors, l10n('this login is already used'));
     152  }
     153  return $errors;
    153154}
    154155
Note: See TracChangeset for help on using the changeset viewer.