Commit 99909967 authored by Alexander Butenko's avatar Alexander Butenko

Minor fixes

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