Skip to content

Commit

Permalink
SW-19261 - Make loading attributes consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
kekster authored and janbuecker committed Aug 17, 2017
1 parent bb64e0e commit 97083fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function load($table, $foreignKey)
->setFirstResult(0)
->setMaxResults(1);

return $query->execute()->fetch(\PDO::FETCH_ASSOC);
return $query->execute()->fetch(\PDO::FETCH_ASSOC) ?: [];
}

/**
Expand Down

0 comments on commit 97083fc

Please sign in to comment.