Closed (duplicate)
Project:
Webform Hints
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Sep 2013 at 13:51 UTC
Updated:
23 Sep 2013 at 21:28 UTC
In the file webform_hints.module, in the function webform_hints_add_title lines 137 and 148, the variable $element['#type'] was not tested correctly.
Could you replace ?
if (in_array($element['#type'], $fieldtypes)) {
by
if (isset($element['#type']) && in_array($element['#type'], $fieldtypes)) {
and
elseif ($element['#type'] == 'select') {
by
elseif (isset($element['#type']) && $element['#type'] == 'select') {
Thanks for this module and best regards
Comments
Comment #1
guschilds commentedClosing as duplicate of #2095865: Varialble $element['#type'] not tested.