From d76611f380db2a3dd6a56975a228cd59e6279c7c Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 19 Nov 2008 04:11:37 +0000 Subject: [PATCH] #2771: Fix SQLQuery::filtersOnID() (wakeless) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66225 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 ce1da7c67..cbc2f4368 100755 --- a/core/model/SQLQuery.php +++ b/core/model/SQLQuery.php @@ -432,8 +432,8 @@ class SQLQuery extends Object { * @return boolean */ function filtersOnID() { - return ($query->where && count($query->where) == 1 && - (strpos($query->where[0], ".`ID` = ") || strpos($query->where[0], ".ID = ") || strpos($query->where[0], "ID = ") ) + return ($this->where && count($this->where) == 1 && + (strpos($this->where[0], ".`ID` = ") || strpos($this->where[0], ".ID = ") || strpos($this->where[0], "ID = ") ) ); }