summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mysql.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/mysql.php b/lib/mysql.php
index 1860fdc..3c906ec 100644
--- a/lib/mysql.php
+++ b/lib/mysql.php
@@ -315,11 +315,18 @@ namespace {
// @codeCoverageIgnoreEnd
}
+ $object = null;
if ($class == null) {
- return mysqli_fetch_object($result);
+ $object = mysqli_fetch_object($result);
+ } else {
+ $object = mysqli_fetch_object($result, $class, $params);
}
- return mysqli_fetch_object($result, $class, $params);
+ if($object == null) {
+ return false;
+ }
+
+ return $object;
}
function mysql_data_seek($result, $offset)