Closed (fixed)
Project:
Nodewords: D6 Meta Tags
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2009 at 04:28 UTC
Updated:
28 Feb 2009 at 07:50 UTC
The second two isset tests occur on creating an new vocabulary, or vocab term. I forget the use case to trigger the first notice, but could probably dig it up if you really need it.
Index: nodewords.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodewords/Attic/nodewords.module,v
retrieving revision 1.57.2.6
diff -r1.57.2.6 nodewords.module
137c137
< if (isset($form['type']) && $form_id == $form['type']['#value'] .'_node_form') {
---
> if (isset($form['type']) && isset($form['type']['#value']) && $form_id == $form['type']['#value'] .'_node_form') {
145c145
< $id = $form['vid']['#value'];
---
> $id = isset($form['vid']['#value']) ? $form['vid']['#value'] : '';
151c151
< $id = $form['tid']['#value'];
---
> $id = isset($form['tid']['#value']) ? $form['tid']['#value'] : '';
463a464,466
> if (!array_key_exists($tag, $tags)) {
> $tags[$tag] = NULL;
> }
Thanks
Comments
Comment #1
Robrecht Jacques commentedThe first I had fixed already.
Fixed the two others.
Because of the non-unified diff, I have no clue as what the last one fixes. Could you use "diff -u"? See http://drupal.org/patch.
Comment #2
pletcher commentedUhg yeah, my bad, sorry. I keep forgetting that cvs diff checks the checked out version, not the latest branch version. The last one was an artifact from the previous patch I submitted, or was something I had patched and forgot to send upstream.
That will remove the notices on the creation of vocabs and terms.
Sorry about that,
jrp
Comment #3
pletcher commentedMan, its late and I'm striking out. Just re-read your last comment.