Index: pathauto_node.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_node.inc,v retrieving revision 1.29 diff -u -r1.29 pathauto_node.inc --- pathauto_node.inc 11 Nov 2006 23:34:51 -0000 1.29 +++ pathauto_node.inc 30 Nov 2006 16:23:38 -0000 @@ -158,7 +158,15 @@ // When editing a node, the taxonomy array might have one or more zero // term IDs. Ignore them... foreach ($node->taxonomy as $firsttermid) { - if ($firsttermid) { + if(is_array($firsttermid)) { + foreach ($firsttermid as $tempid) { + if($tempid && is_numeric($tempid)) { + $firsttermid = $tempid; + break; + } + } + } + if ($firsttermid && is_numeric($firsttermid)) { break; } }