From 75a237cd01fdab4aa77e69e0d8800255831152ba Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 24 Nov 2008 19:48:11 +0000 Subject: [PATCH] BUGFIX: Fixed SQLQuery::filtersOnId git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@66509 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SQLQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/model/SQLQuery.php b/core/model/SQLQuery.php index 3b870afa9..7f5e4c4d8 100755 --- a/core/model/SQLQuery.php +++ b/core/model/SQLQuery.php @@ -402,8 +402,8 @@ class SQLQuery extends Object { * @return boolean */ function filtersOnID() { - return ($this->where && count($this->where) == 1 && - (strpos($query->where[0], ".\"ID\" = ") || strpos($query->where[0], ".`ID` = ") || strpos($query->where[0], ".ID = ") || strpos($query->where[0], "ID = ") ) + return ($this->where && + (strpos($this->where[0], ".\"ID\" = ") || strpos($this->where[0], ".`ID` = ") || strpos($this->where[0], ".ID = ") || strpos($this->where[0], "ID = ") ) ); }