mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add additional empty() for tablePrefix.
Fixes compatibility issues with plugins that worked correctly in previous point releases. Fixes #2462
This commit is contained in:
parent
dbea15650b
commit
aeda986745
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ class Model extends Object {
|
|||
}
|
||||
if ($name === 'tablePrefix') {
|
||||
$this->setDataSource();
|
||||
if (property_exists($this, 'tablePrefix')) {
|
||||
if (property_exists($this, 'tablePrefix') && !empty($this->tablePrefix)) {
|
||||
return $this->tablePrefix;
|
||||
}
|
||||
return $this->tablePrefix = null;
|
||||
|
|
Loading…
Reference in a new issue