fix typo error.

This commit is contained in:
kj 2020-05-01 19:17:47 -04:00
parent 9d31dc1c24
commit 28ada2810d

View File

@ -162,13 +162,13 @@ class ModelMySQL {
*/ */
public static function getInstance($elem = []) { public static function getInstance($elem = []) {
$class = get_called_class(); $class = get_called_class();
$instace = new $class; $instance = new $class;
foreach ($elem as $key => $value) { foreach ($elem as $key => $value) {
$instace->$key = $value; $instance->$key = $value;
} }
return $instace; return $instance;
} }
/* /*