Commit 99909967 authored by Alexander Butenko's avatar Alexander Butenko

Minor fixes

parent 3214680b
......@@ -270,7 +270,7 @@ class MysqliDb
{
$res = $this->get ($tableName, 1, $columns);
if (is_object($res))
if ($this->isSubQuery)
return $res;
if (isset($res[0]))
......@@ -795,10 +795,7 @@ class MysqliDb
$newStr = "";
while ($pos = strpos ($str, "?")) {
$val = $vals[$i++];
if (is_object ($val))
$val = '[object]';
$newStr .= substr ($str, 0, $pos) . $val;
$newStr .= substr ($str, 0, $pos) . $vals[$i++];
$str = substr ($str, $pos + 1);
}
return $newStr;
......
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