We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47211b7 commit f9e4811Copy full SHA for f9e4811
src/templates/Comment/Delete.phtml
@@ -32,13 +32,15 @@ switch ($this->getContext()->error) {
32
$message = $this->getContext()->error;
33
}
34
35
-$c = $this->getContext()->comment;
36
-$c_id = $c->getId();
37
-$c_user = $c->getUser();
38
-$c_user_id = $c->getUserId();
39
-$c_user_name = $c_user->getName();
40
-$c_user_url = $c_user->getURI();
41
-$c_user_avatar = $c_user->getAvatarURI(22);
+$c = $this->getContext()->comment;
+if ($c) {
+ $c_id = $c->getId();
+ $c_user = $c->getUser();
+ $c_user_id = $c->getUserId();
+ $c_user_name = $c_user->getName();
+ $c_user_url = $c_user->getURI();
42
+ $c_user_avatar = $c_user->getAvatarURI(22);
43
+}
44
45
$this->additional_css[] = "/a/comments.css";
46
$this->additional_css[] = "/a/forms.css";
0 commit comments