diff options
author | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2015-02-03 14:29:45 +0300 |
---|---|---|
committer | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2015-02-05 13:25:55 +0300 |
commit | f56a0475d90af025e92ec4716ff4e5121992b4fe (patch) | |
tree | c351eff2ed0b007eafed412a513bbec5fb4c5f91 /codebase/connector/db_phpci.php | |
parent | 32504c39dd0183ac30da815e4cf41ac8fa022b99 (diff) | |
download | scheduler-4.3.0.zip scheduler-4.3.0.tar.gz scheduler-4.3.0.tar.bz2 |
[update] version 4.3.0v4.3.0
Diffstat (limited to 'codebase/connector/db_phpci.php')
-rw-r--r-- | codebase/connector/db_phpci.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/codebase/connector/db_phpci.php b/codebase/connector/db_phpci.php index b9a5879..e38d831 100644 --- a/codebase/connector/db_phpci.php +++ b/codebase/connector/db_phpci.php @@ -19,8 +19,10 @@ class PHPCIDBDataWrapper extends DBDataWrapper{ if ($res===false) { throw new Exception("CI - sql execution failed"); } - - return new PHPCIResultSet($res); + + if (is_object($res)) + return new PHPCIResultSet($res); + return new ArrayQueryWrapper(array()); } public function get_next($res){ |