I am displaying x % answered on my forum. However, the qa_opt('cache_qcount') includes also closed questions that will never be answered. The statistics is not correct.
Is it save to change in qa-db-admin.php the function qa_db_count_posts from:
$wheresql.=(strlen($wheresql) ? ' AND' : ' WHERE').' userid '.($fromuser ? 'IS NOT' : 'IS').' NULL';
to:
$wheresql.=(strlen($wheresql) ? ' AND' : ' WHERE').' userid '.($fromuser ? 'IS NOT' : 'IS').' NULL';
if($type=='Q') {
$wheresql.=' AND closedbyid IS NULL';
}
It seems to work...