fixed a bug in LoginModel::formatString()

This commit is contained in:
hyung-hwan 2021-10-19 04:07:09 +00:00
parent 833ced68eb
commit 612d6a2ea6

View File

@ -125,8 +125,8 @@ class LoginModel extends CI_Model
function formatString ($fmt, $userid, $password) function formatString ($fmt, $userid, $password)
{ {
$regexs = array('${userid}', '${password}'); $needles = array('${userid}', '${password}');
$repl = array($userid, $password); $repl = array($userid, $password);
return str_replace($regexs, $repl, $fmt); return str_replace($needles, $repl, $fmt);
} }
} }