mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
Update Model.php
避免出现index错误,不知道是否正确.
This commit is contained in:
@@ -76,7 +76,7 @@ class Model
|
|||||||
|
|
||||||
if (!empty($config['prefix'])) {
|
if (!empty($config['prefix'])) {
|
||||||
$this->tablePrefix = $config['prefix'];
|
$this->tablePrefix = $config['prefix'];
|
||||||
} elseif ('' === $config['prefix']) {
|
} elseif (isset($config['prefix']) && '' === $config['prefix']) {
|
||||||
$this->tablePrefix = '';
|
$this->tablePrefix = '';
|
||||||
} elseif (is_null($this->tablePrefix)) {
|
} elseif (is_null($this->tablePrefix)) {
|
||||||
$this->tablePrefix = Config::get('database.prefix');
|
$this->tablePrefix = Config::get('database.prefix');
|
||||||
|
|||||||
Reference in New Issue
Block a user