MINOR where[] can't be used for reading

This commit is contained in:
Sean Harvey 2008-07-21 04:40:18 +00:00
parent 8d138f4059
commit 6abbe5b44f

View File

@ -48,7 +48,7 @@ class MultiFormObjectDecorator extends DataObjectDecorator {
* @return boolean * @return boolean
*/ */
protected function wantsTemporary($query) { protected function wantsTemporary($query) {
foreach($query->where[] as $whereClause) { foreach($query->where as $whereClause) {
if($whereClause == "`{$query->from[0]}`.`MultiFormIsTemporary` = 1") return true; if($whereClause == "`{$query->from[0]}`.`MultiFormIsTemporary` = 1") return true;
} }
return false; return false;