Try to assign a non existing variable in form_alter

B-Prod - October 15, 2009 - 14:52
Project:Popups: Add and Reference
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

The code $node = $form['#node'] assigns the variable $form['#node'] without checking if this variable exists.

I just modify the test isset($form['type']) before and added to it the test isset($form['#node']).

AttachmentSize
popups_reference.patch733 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.