mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Do not cause fatal error when query cache file failed to load
This commit is contained in:
parent
0c54b10f69
commit
1a8dcd6a34
3 changed files with 6 additions and 0 deletions
|
|
@ -577,6 +577,10 @@ class DB
|
|||
{
|
||||
return $output;
|
||||
}
|
||||
if(!is_object($output) || !method_exists($output, 'getAction'))
|
||||
{
|
||||
return new Object(-1, sprintf(lang('msg_failed_to_load_query'), $query_id));
|
||||
}
|
||||
|
||||
// execute appropriate query
|
||||
switch($output->getAction())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue