Undefined index: any

emmajane - September 28, 2008 - 16:43
Project:HTMLBox
Version:6.x-1.0-beta5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

On a fresh install of htmlbox on a brand new Drupal 6.4 site (only core modules installed), I get the following error when I install htmlbox. This error appears on the modules page after clicking, "save configuration."
* notice: Undefined index: any in /path/to/drupal/sites/all/modules/htmlbox/htmlbox.module on line 305.
* notice: Undefined variable: buttons in /path/to/drupal/sites/all/modules/htmlbox/htmlbox.module on line 393.

On the page /?q=admin/settings/htmlbox the following errors appear:
* notice: Undefined index: any in /path/to/drupal/sites/all/modules/htmlbox/htmlbox.module on line 305.

Please change the following:
line 305: add isset() around $other_forms['any']
line 393: change $buttons to 'buttons'

Patch attached.

AttachmentSize
htmlbox.patch885 bytes

#1

emmajane - September 29, 2008 - 18:27
Status:active» needs review

patch attached, updating the status

 
 

Drupal is a registered trademark of Dries Buytaert.