Fix #767 error when query argument is not an object

This commit is contained in:
Kijin Sung 2017-03-23 19:23:45 +09:00
parent c377e371b1
commit d2a3b5203c

View file

@ -567,10 +567,18 @@ class DB
return new Object(-1, 'msg_invalid_queryid');
}
if($source_args)
if (is_object($source_args))
{
$args = clone $source_args;
}
elseif (is_array($source_args))
{
$args = (object)$source_args;
}
else
{
$args = null;
}
$output = include($cache_file);