Skip to content

Commit

Permalink
fix #20
Browse files Browse the repository at this point in the history
  • Loading branch information
emalherbi committed Jun 14, 2018
1 parent 083a81e commit 5cc0b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MyMssql.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function fetchRow($sql)
$this->logger('MyMssql Fetch Row: '.json_encode($result));
}

return empty($result) ? false : $result;
return empty($result) ? array() : $result;
} catch (Exception $e) {
$err = $e->getMessage();
$this->logger('MyMssql Fetch Row '.$this->ini['ADAPTER'], $err);
Expand Down Expand Up @@ -266,7 +266,7 @@ public function fetchAll($sql)
$this->logger('MyMssql Fetch All: '.json_encode($result));
}

return empty($result) ? false : $result;
return empty($result) ? array() : $result;
} catch (Exception $e) {
$err = $e->getMessage();
$this->logger('MyMssql Fetch All '.$this->ini['ADAPTER'], $err);
Expand Down

0 comments on commit 5cc0b8a

Please sign in to comment.