In my custom theme I am overriding function main() and checking if user is logged and the question age this way:
if(!qa_is_logged_in() && $this->template=='question' && (time() - $this->content['q_view']['raw']['created']) > 300) {
...
}
However, now I got a php error:
PHP Notice: Undefined index: q_view in qa-theme/custom/qa-theme.php on line 156
Can anybody help, and esp. tell me why we have no q_view here?
Thanks,
Kai