Commit dde0923c authored by Gábor Hojtsy's avatar Gábor Hojtsy

#202967 by catch: kill notice on forum page

parent bfca6214
...@@ -258,7 +258,7 @@ function forum_nodeapi(&$node, $op, $teaser, $page) { ...@@ -258,7 +258,7 @@ function forum_nodeapi(&$node, $op, $teaser, $page) {
break; break;
case 'update': case 'update':
if (!$node->revision && db_result(db_query('SELECT tid FROM {forum} WHERE nid=%d', $node->nid))) { if (empty($node->revision) && db_result(db_query('SELECT tid FROM {forum} WHERE nid=%d', $node->nid))) {
if (!empty($node->tid)) { if (!empty($node->tid)) {
db_query('UPDATE {forum} SET tid = %d WHERE vid = %d', $node->tid, $node->vid); db_query('UPDATE {forum} SET tid = %d WHERE vid = %d', $node->tid, $node->vid);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment