From fb7ac680b0ec3397904ddb4602d16459e1089ad6 Mon Sep 17 00:00:00 2001 From: the_undefined Date: Tue, 13 May 2008 22:53:44 +0000 Subject: [PATCH] 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 --- cake/libs/model/datasources/dbo_source.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index 59cc33dc9..5c95c7010 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -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;