Skip to content

Commit

Permalink
Fixed a minor PHP warning. Bug 2979. (SE)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Apr 21, 2005
1 parent 1af9afe commit 8cb091e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/forum/post.php
Expand Up @@ -552,6 +552,9 @@
$navmiddle = "<a href=\"../forum/index.php?id=$course->id\">$strforums</a> -> <a href=\"view.php?f=$forum->id\">".format_string($forum->name,true)."</a>";

if (empty($discussion->name)) {
if (empty($discussion)) {
$discussion = new object;
}
$discussion->name = $forum->name;
}

Expand Down

0 comments on commit 8cb091e

Please sign in to comment.