We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9f91cc01 authored by Florian Hülsmann's avatar Florian Hülsmann

fixed fatal error when a QnA question is deleted but its notice still exists

parent 3ad77e8b
......@@ -436,7 +436,7 @@ class QnAPlugin extends MicroAppPlugin
$user = common_current_user();
$question = QnA_Question::getByNotice($notice);
if (!empty($user)) {
if (!empty($user) and !empty($question)) {
$profile = $user->getProfile();
$answer = $question->getAnswer($profile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment