From a3201d6ed9967179aa020802e6fb88d2a6a0e37e Mon Sep 17 00:00:00 2001 From: Christopher Darling Date: Thu, 16 Jul 2015 14:36:23 +0100 Subject: [PATCH] FIX: $callerClass is undefined replaced with $this->dataClass --- model/DataQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/DataQuery.php b/model/DataQuery.php index 6d04ee5d4..21b259dbd 100644 --- a/model/DataQuery.php +++ b/model/DataQuery.php @@ -223,7 +223,7 @@ class DataQuery { if($this->dataClass != $baseClass) { // Get the ClassName values to filter to $classNames = ClassInfo::subclassesFor($this->dataClass); - if(!$classNames) user_error("DataList::create() Can't find data sub-classes for '$callerClass'"); + if(!$classNames) user_error("DataList::create() Can't find data sub-classes for '{$this->dataClass}'"); $classNames = array_map(array(DB::getConn(), 'prepStringForDB'), $classNames); $query->addWhere("\"$baseClass\".\"ClassName\" IN (" . implode(",", $classNames) . ")"); }