FIX: $callerClass is undefined

replaced with $this->dataClass
This commit is contained in:
Christopher Darling 2015-07-16 14:36:23 +01:00
parent bd316b9002
commit a3201d6ed9

View File

@ -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) . ")");
}