Fixed compatibility with old versions of models
This commit is contained in:
parent
9902f0ef16
commit
38c882c6ee
1 changed files with 6 additions and 1 deletions
|
|
@ -75,7 +75,12 @@ function padminConsole($options)
|
|||
if(get_parent_class($class)==='PhangoApp\PhaModels\Webmodel')
|
||||
{
|
||||
|
||||
Webmodel::$model[strtolower($class)]=new $class();
|
||||
if(!isset(Webmodel::$model[strtolower($class)]))
|
||||
{
|
||||
|
||||
Webmodel::$model[strtolower($class)]=new $class();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue