On Drupal 6.4-dev I get the following error:
Undefined index: type in /home/avpnet/public_html/sites/all/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module on line 167.
Checking that line, I see the following code:
case $form['type']['#value'] .'_node_form':
if (isset($form['type'])) {
$node = $form['#node'];
// ...
}
which is wrong; it first uses an array index, and then it checks if it is set.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | xmlsitemap-292103-2.patch | 4.34 KB | jmoy |
Comments
Comment #1
avpadernoI rewritten the function containing that code as follow:
Comment #2
jmoy commentedPatch on the above lines attached.
Comment #3
jmoy commentedComment #4
avpadernoComment #5
avpadernoFixed in 6.x-1.x-dev.