Skip to content

Commit

Permalink
Remove unnecessary use of additional ADODB function GetAssoc
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jun 20, 2018
1 parent f75c688 commit 3ba40ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/filter/FilterDAO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function getObjectsByGroup($groupSymbolic, $contextId = CONTEXT_ID_NONE, $getTem
// result set that comply with the current runtime
// environment.
$matchingFilters = array();
foreach($result->GetAssoc() as $filterRow) {
foreach($result->GetRows() as $filterRow) {
$filterInstance = $this->_fromRow($filterRow);
if (!$checkRuntimeEnvironment || $filterInstance->isCompatibleWithRuntimeEnvironment()) {
$matchingFilters[$filterInstance->getId()] = $filterInstance;
Expand Down

0 comments on commit 3ba40ed

Please sign in to comment.