Commit df1b0b90 authored by Alexander Butenko's avatar Alexander Butenko

Merge pull request #305 from avbdr/master

Fix getValue for NULL values
parents dad6618e 239730f4
......@@ -500,8 +500,11 @@ class MysqliDb
if (!$res)
return null;
if (isset($res[0]["retval"]) && $limit == 1)
return $res[0]["retval"];
if ($limit == 1) {
if (isset ($res[0]["retval"]))
return $res[0]["retval"];
return null;
}
$newRes = Array ();
for ($i = 0; $i < $this->count; $i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment