variables not checked before assigning = bad
Thanks, looks good except for this portion:
+++ formfilter_ui/formfilter_ui.module @@ -99,9 +99,9 @@ function formfilter_ui_form_alter(&$form, &$form_state, $form_id) { - $form['#suffix'] .= '<div>'. l(t('Filter this form'), $_GET['q'], array('query' => 'formfilter_id='. $form_id)) .'</div>'; + $form['#suffix'] = '<div>'. l(t('Filter this form'), $_GET['q'], array('query' => 'formfilter_id='. $form_id)) .'</div>';
Will overwrite any existing #suffix.
o0ps u're right..
$form['#suffix'] = (isset($form['#suffix']) ? $form['#suffix'] : '') .'<div>'. l(t('Filter this form'), $_GET['q'], array('query' => 'formfilter_id='. $form_id)) .'</div>';
Also see patch in #731174: Correct node_form() usage in formfilter_ui_node_form() function at formfilter_ui.module line 49, and other PHP warnings which includes a fix to this problem and others.
Duplicate of #731174: Correct node_form() usage in formfilter_ui_node_form() function at formfilter_ui.module line 49, and other PHP warnings
Comments
Comment #1
nedjoThanks, looks good except for this portion:
Will overwrite any existing #suffix.
Comment #2
eMPee584 commentedo0ps u're right..
Comment #3
pillarsdotnet commentedAlso see patch in #731174: Correct node_form() usage in formfilter_ui_node_form() function at formfilter_ui.module line 49, and other PHP warnings which includes a fix to this problem and others.
Comment #4
pianomansam commentedDuplicate of #731174: Correct node_form() usage in formfilter_ui_node_form() function at formfilter_ui.module line 49, and other PHP warnings