Solution for error:
warning: Invalid argument supplied for foreach () in / var / www / html / modules / taxonomy / taxonomy.module on line 1241.
-> / modules / taxonomy / taxonomy.module on line 1241
/**
* Implementation of hook_nodeapi('update_index').
*/
function taxonomy_node_update_index(&$node) {
$output = array();
if(!empty ($node->taxonomy)){
foreach ($node->taxonomy as $term) {
$output[] = $term->name;
}
}
if (count($output)) {
return '('. implode(', ', $output) .')';
}
}
Solution for error:
warning: Invalid argument supplied for foreach () in / var / www / html / modules / taxonomy / taxonomy.module on line 1241.
-> / modules / taxonomy / taxonomy.module on line 1241
/**
* Implementation of hook_nodeapi('update_index').
*/
function taxonomy_node_update_index(&$node) {
$output = array();
if(!empty ($node->taxonomy)){
foreach ($node->taxonomy as $term) {
$output[] = $term->name;
}
}
if (count($output)) {
return '('. implode(', ', $output) .')';
}
}