use cache even if SQL query result was empty

This commit is contained in:
Michael Save 2012-01-09 10:44:26 +11:00
parent 699cda80fe
commit aff19d1b03

View File

@ -320,10 +320,10 @@
sprintf($config['file_page'], $post['thread']) . '#' . $match[1]
: sprintf($config['file_page'], $match[1])) .
'">$0</a>', $log['text']);
if($config['cache']['enabled'])
cache::set($log_id, $log['text']);
}
if($config['cache']['enabled'])
cache::set($log_id, $log['text']);
}
}
}