Skip to content

Commit

Permalink
Proper existence check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 25, 2016
1 parent 477e7d3 commit fd76016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sam/lib/Driver/Amavisd/Sql.php
Expand Up @@ -94,7 +94,7 @@ public function retrieve()
}

/* Loop through elements of the result, retrieving options. */
if ($result) {
if (!empty($result)) {
foreach ($result as $field => $value) {
$attribute = $this->_mapFieldToAttribute('policies', $field);
if ($this->hasCapability($attribute) && !is_null($value)) {
Expand Down

0 comments on commit fd76016

Please sign in to comment.