From 1c4ab9ba44e9d8adef6930d4303a0b3733889449 Mon Sep 17 00:00:00 2001 From: Heiko August Date: Mon, 27 Apr 2020 13:34:40 +0200 Subject: [PATCH] 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. --- admin/categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/categories.php b/admin/categories.php index 504579b..d7f485a 100644 --- a/admin/categories.php +++ b/admin/categories.php @@ -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':