I have a mostly-empty Drupal 6 installation and I'm having problems with variable errors appearing on my pages:

* notice: Undefined index: supernav_logout in /home/emmajane/websites/drupal/drupal-6/sites/all/modules/supernav/supernav.module on line 1161.
* notice: Undefined variable: script in /home/emmajane/websites/drupal/drupal-6/sites/all/modules/supernav/supernav.module on line 1184.
* notice: Undefined variable: comma in /home/emmajane/websites/drupal/drupal-6/sites/all/modules/supernav/supernav.module on line 74.
* notice: Undefined variable: shortcut_keys in /home/emmajane/websites/drupal/drupal-6/sites/all/modules/supernav/supernav.module on line 74.
* notice: Undefined variable: comma in /home/emmajane/websites/drupal/drupal-6/sites/all/modules/supernav/supernav.module on line 74.
* notice: Undefined variable: shortcut_keys in /home/emmajane/websites/drupal/drupal-6/sites/all/modules/supernav/supernav.module on line 74.

These appear to be bits of injected Javascript? I am using the default Garland theme when these problems arise ($closure is printed at the bottom of the page).

CommentFileSizeAuthor
#1 supernav.patch1.6 KBemmajane

Comments

emmajane’s picture

Status: Active » Needs review
StatusFileSize
new1.6 KB

I think I've found the spots where the variables are getting confused. Please see attached patch for the module.

chrisshattuck’s picture

Please see http://drupal.org/node/285027#comment-1094346. Thank you for the patch, emmajane!