summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/shownotice.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php
index 2ede559e2..4b954d57b 100644
--- a/actions/shownotice.php
+++ b/actions/shownotice.php
@@ -32,7 +32,9 @@ class ShownoticeAction extends StreamAction {
$this->no_such_notice();
}
- if (!$notice->getProfile()) {
+ $profile = $notice->getProfile();
+
+ if (!$profile) {
$this->no_such_notice();
}