fix typo error.
This commit is contained in:
parent
9d31dc1c24
commit
28ada2810d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user