Permalink
Browse files

Fix for bug MDL-6517. Patch by David Mudrak (thanks!).

  • Loading branch information...
vyshane
vyshane committed Sep 14, 2006
1 parent 0e448ae commit b139f7ae4ba0ece3c40b70cc6801af3d9cb15b33
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/forum/post.php
View
@@ -136,7 +136,7 @@
$message = '';
- if (get_field('forum', 'type', 'id', $forum) == 'news' && !$oldpost->parent) {
+ if (get_field('forum', 'type', 'id', $forum->id) == 'news' && !$oldpost->parent) {
$updatediscussion = new object;
$updatediscussion->id = $oldpost->discussion;
if (empty($post->timestartdisabled)) {
@@ -274,7 +274,7 @@
}
$newstopic = false;
- if (get_field('forum', 'type', 'id', $forum) == 'news') {
+ if (get_field('forum', 'type', 'id', $forum->id) == 'news') {
$newstopic = true;
}
if ($newstopic && empty($post->timestartdisabled)) {

0 comments on commit b139f7a

Please sign in to comment.