mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #767 error when query argument is not an object
This commit is contained in:
parent
c377e371b1
commit
d2a3b5203c
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue