Commit 8f513b0a authored by Alexander Butenko's avatar Alexander Butenko

Revert "Minor fixes"

This reverts commit 99909967.
parent ab6caff5
...@@ -271,7 +271,7 @@ class MysqliDb ...@@ -271,7 +271,7 @@ class MysqliDb
{ {
$res = $this->get ($tableName, 1, $columns); $res = $this->get ($tableName, 1, $columns);
if ($this->isSubQuery) if (is_object($res))
return $res; return $res;
if (isset($res[0])) if (isset($res[0]))
...@@ -802,7 +802,10 @@ class MysqliDb ...@@ -802,7 +802,10 @@ class MysqliDb
$newStr = ""; $newStr = "";
while ($pos = strpos ($str, "?")) { while ($pos = strpos ($str, "?")) {
$newStr .= substr ($str, 0, $pos) . $vals[$i++]; $val = $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