Download & Extend

Saving node with no taxonomy cause php warning

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.

AttachmentSizeStatusTest resultOperations
taxonomy_menu.patch788 bytesIgnored: Check issue status.NoneNone

#2

Status:active» fixed

This code was removed in the latest dev.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here