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

#194075 by neclimdul: nodeapi load should return an array by documentation,...

#194075 by neclimdul: nodeapi load should return an array by documentation, and forum's nodeapi load returns an object
parent 8bd692d6
......@@ -271,7 +271,7 @@ function forum_nodeapi(&$node, $op, $teaser, $page) {
db_query('DELETE FROM {forum} WHERE nid = %d', $node->nid);
break;
case 'load':
return db_fetch_object(db_query('SELECT tid AS forum_tid FROM {forum} WHERE vid = %d', $node->vid));
return db_fetch_array(db_query('SELECT tid AS forum_tid FROM {forum} WHERE vid = %d', $node->vid));
}
return;
......
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