From 091325bcd16d71a93eae5e740fa4f65d617c4672 Mon Sep 17 00:00:00 2001 From: phishy Date: Tue, 7 Oct 2008 00:55:51 +0000 Subject: [PATCH] Fixes #5539 - $config prototype was not being set correctly git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7709 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo/dbo_oracle.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_oracle.php b/cake/libs/model/datasources/dbo/dbo_oracle.php index 1338b5767..a390dfe7e 100644 --- a/cake/libs/model/datasources/dbo/dbo_oracle.php +++ b/cake/libs/model/datasources/dbo/dbo_oracle.php @@ -41,7 +41,7 @@ class DboOracle extends DboSource { * @var unknown_type * @access public */ - var $config; + var $config = array(); /** * Enter description here... * @@ -968,7 +968,7 @@ class DboOracle extends DboSource { $ins = array_chunk($ins, 1000); foreach ($ins as $i) { $q = str_replace('{$__cakeID__$}', join(', ', $i), $query); - $q = str_replace('= (', 'IN (', $q); + $q = str_replace('= (', 'IN (', $q); $res = $this->fetchAll($q, $model->cacheQueries, $model->alias); $fetch = array_merge($fetch, $res); } @@ -1012,7 +1012,7 @@ class DboOracle extends DboSource { $ins = array_chunk($ins, 1000); foreach ($ins as $i) { $q = str_replace('{$__cakeID__$}', '(' .join(', ', $i) .')', $query); - $q = str_replace('= (', 'IN (', $q); + $q = str_replace('= (', 'IN (', $q); $q = str_replace(' WHERE 1 = 1', '', $q);