Do not cause fatal error when query cache file failed to load

This commit is contained in:
Kijin Sung 2017-02-08 14:12:44 +09:00
parent 0c54b10f69
commit 1a8dcd6a34
3 changed files with 6 additions and 0 deletions

View file

@ -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())

View file

@ -225,6 +225,7 @@ $lang->msg_call_server = 'Requesting to the server, please wait.';
$lang->msg_db_not_setted = 'DB configuration has not been set.';
$lang->msg_dbconnect_failed = 'Error has occurred while connecting to the DB. Please check the DB information again.';
$lang->msg_invalid_queryid = 'Specified query ID value is invalid.';
$lang->msg_failed_to_load_query = 'Failed to load query %s.';
$lang->msg_not_permitted = 'You do not have permission to access.';
$lang->msg_input_password = 'Please type the password.';
$lang->msg_invalid_document = 'Invalid Article Number';

View file

@ -225,6 +225,7 @@ $lang->msg_call_server = '서버에 요청 중입니다. 잠시만 기다려 주
$lang->msg_db_not_setted = 'DB 설정이 되어 있지 않습니다.';
$lang->msg_dbconnect_failed = 'DB 접속 오류가 발생했습니다. DB정보를 다시 확인해주세요.';
$lang->msg_invalid_queryid = 'Query ID값이 잘못 지정되었습니다.';
$lang->msg_failed_to_load_query = '%s 쿼리가 정상적으로 로딩되지 않았습니다.';
$lang->msg_not_permitted = '권한이 없습니다.';
$lang->msg_input_password = '비밀번호를 입력하세요.';
$lang->msg_invalid_document = '잘못된 문서번호입니다.';