From 5cc0b8ac3ba8fa43740c90d3d011368f31c31a3e Mon Sep 17 00:00:00 2001 From: Eduardo Malherbi Date: Thu, 14 Jun 2018 10:55:25 -0300 Subject: [PATCH] fix #20 --- src/MyMssql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MyMssql.php b/src/MyMssql.php index 3b8e9dc..1e0b0db 100755 --- a/src/MyMssql.php +++ b/src/MyMssql.php @@ -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); @@ -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);