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:
phpnut 2007-02-01 05:18:25 +00:00
parent 7e68d31e60
commit ba6ad9d3c1

View file

@ -1905,7 +1905,7 @@ class Model extends Overloadable {
$db =& ConnectionManager::getDataSource($this->useDbConfig); $db =& ConnectionManager::getDataSource($this->useDbConfig);
if (isset($db->config['prefix'])) { if (!empty($db->config['prefix']) && $this->tablePrefix == null) {
$this->tablePrefix = $db->config['prefix']; $this->tablePrefix = $db->config['prefix'];
} }