From 6abbe5b44fbb208d1cbbd91773d4f237664e30fc Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 21 Jul 2008 04:40:18 +0000 Subject: [PATCH] MINOR where[] can't be used for reading --- code/MultiFormObjectDecorator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MultiFormObjectDecorator.php b/code/MultiFormObjectDecorator.php index fd4d718..8168d95 100644 --- a/code/MultiFormObjectDecorator.php +++ b/code/MultiFormObjectDecorator.php @@ -48,7 +48,7 @@ class MultiFormObjectDecorator extends DataObjectDecorator { * @return boolean */ protected function wantsTemporary($query) { - foreach($query->where[] as $whereClause) { + foreach($query->where as $whereClause) { if($whereClause == "`{$query->from[0]}`.`MultiFormIsTemporary` = 1") return true; } return false;