Merge commit 'refs/merge-requests/199' of git://gitorious.org/statusnet/mainline into statusnet-merge-requests/199
This commit is contained in:
commit
220b51d8be
@ -398,7 +398,7 @@ class QnAPlugin extends MicroAppPlugin
|
|||||||
$user = common_current_user();
|
$user = common_current_user();
|
||||||
$question = QnA_Question::getByNotice($notice);
|
$question = QnA_Question::getByNotice($notice);
|
||||||
|
|
||||||
if (!empty($user)) {
|
if (!empty($user) and !empty($question)) {
|
||||||
$profile = $user->getProfile();
|
$profile = $user->getProfile();
|
||||||
$answer = $question->getAnswer($profile);
|
$answer = $question->getAnswer($profile);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user