Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2712'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adapter/DbTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function getResultRowObject($returnColumns = null, $omitColumns = null)
if (null !== $returnColumns) {

$availableColumns = array_keys($this->resultRow);
foreach ((array)$returnColumns as $returnColumn) {
foreach ((array) $returnColumns as $returnColumn) {
if (in_array($returnColumn, $availableColumns)) {
$returnObject->{$returnColumn} = $this->resultRow[$returnColumn];
}
Expand All @@ -287,7 +287,7 @@ public function getResultRowObject($returnColumns = null, $omitColumns = null)

} elseif (null !== $omitColumns) {

$omitColumns = (array)$omitColumns;
$omitColumns = (array) $omitColumns;
foreach ($this->resultRow as $resultColumn => $resultValue) {
if (!in_array($resultColumn, $omitColumns)) {
$returnObject->{$resultColumn} = $resultValue;
Expand Down

0 comments on commit 186ebc9

Please sign in to comment.