Posted by pokurek on November 10, 2009 at 9:50pm
| Project: | Taxonomy menu |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When I save a node with no taxonomy, then php warning occurs.
warning: array_keys() [function.array-keys]: The first argument should be an array in /opt/drupal/6.x/modules/taxonomy_menu/taxonomy_menu.module on line 328.
warning: implode() [function.implode]: Invalid arguments passed in /opt/drupal/6.x/modules/taxonomy_menu/taxonomy_menu.database.inc on line 160.
$node->taxonomy property is not set in $node_tids = array_keys($node->taxonomy);
Is it possible to check if node has a taxonomy?
Comments
#1
I do this check. If it is enough.
#2
This code was removed in the latest dev.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.