Skip to content

Commit

Permalink
FIX: module_system | class_orm_objectlist > method getObjectList shou…
Browse files Browse the repository at this point in the history
…ld only return objects which are of the given target class
  • Loading branch information
chriskapp committed May 26, 2015
1 parent 17a3c0d commit ce80a6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module_system/system/class_orm_objectlist.php
Expand Up @@ -104,10 +104,10 @@ public function getObjectList($strTargetClass, $strPrevid = "", $intStart = null
$arrReturn = array();
foreach($arrRows as $arrOneRow) {
//Caching is only allowed if the fetched and required classes match. Otherwise there could be missing queried tables.
if($arrOneRow["system_class"] == $strTargetClass)
if($arrOneRow["system_class"] == $strTargetClass) {
class_orm_rowcache::addSingleInitRow($arrOneRow);

$arrReturn[] = class_objectfactory::getInstance()->getObject($arrOneRow["system_id"]);
$arrReturn[] = class_objectfactory::getInstance()->getObject($arrOneRow["system_id"]);
}
}

return $arrReturn;
Expand Down

0 comments on commit ce80a6a

Please sign in to comment.