fixed a bug in LoginModel::formatString()
This commit is contained in:
parent
833ced68eb
commit
612d6a2ea6
@ -125,8 +125,8 @@ class LoginModel extends CI_Model
|
||||
|
||||
function formatString ($fmt, $userid, $password)
|
||||
{
|
||||
$regexs = array('${userid}', '${password}');
|
||||
$needles = array('${userid}', '${password}');
|
||||
$repl = array($userid, $password);
|
||||
return str_replace($regexs, $repl, $fmt);
|
||||
return str_replace($needles, $repl, $fmt);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user