Made sure DboSource always has a prefix setting, closes #4601

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6857 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
the_undefined 2008-05-13 22:53:44 +00:00
parent 825eb48508
commit fb7ac680b0

View file

@ -89,6 +89,9 @@ class DboSource extends DataSource {
* Constructor
*/
function __construct($config = null, $autoConnect = true) {
if (!isset($config['prefix'])) {
$config['prefix'] = '';
}
parent::__construct($config);
$this->fullDebug = Configure::read() > 1;