mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding fix for #1965
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4382 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7e68d31e60
commit
ba6ad9d3c1
1 changed files with 1 additions and 1 deletions
|
@ -1905,7 +1905,7 @@ class Model extends Overloadable {
|
|||
|
||||
$db =& ConnectionManager::getDataSource($this->useDbConfig);
|
||||
|
||||
if (isset($db->config['prefix'])) {
|
||||
if (!empty($db->config['prefix']) && $this->tablePrefix == null) {
|
||||
$this->tablePrefix = $db->config['prefix'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue