Fix: provide an array where the code expects one
The function output_form in categories.class.php expects an array in $form_input. When the function get called to create the form for a new category, the function call provided an emptry string. This led to a warning since PHP 5.4 because of type mismatch. Providing an array prevents this error. This is the only pace, I found the error.
This commit is contained in:
parent
a6daece140
commit
1c4ab9ba44
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
|||
$c['main'] .= $categories->output_form($form_input, 'new', $l['admin']['cat_new']);
|
||||
}
|
||||
}
|
||||
else $c['main'] .= $categories->output_form('', 'new', $l['admin']['cat_new']);
|
||||
else $c['main'] .= $categories->output_form(array('id' => NULL, 'name' => NULL, 'url' => NULL, 'description' => NULL), 'new', $l['admin']['cat_new']);
|
||||
break;
|
||||
|
||||
case 'change':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue