Skip to content
Snippets Groups Projects
Commit dde0923c authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#202967 by catch: kill notice on forum page

parent bfca6214
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -258,7 +258,7 @@ function forum_nodeapi(&$node, $op, $teaser, $page) {
break;
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)) {
db_query('UPDATE {forum} SET tid = %d WHERE vid = %d', $node->tid, $node->vid);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment