From f3bc327be7be8a1aeeb49c7f46c86628e5d52e77 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 30 Jan 2020 04:13:14 +0100 Subject: multi edit can unset templates thumbnail favicon --- app/class/Controllerhome.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/class') diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php index 02d6c9d..c7d1792 100644 --- a/app/class/Controllerhome.php +++ b/app/class/Controllerhome.php @@ -166,6 +166,13 @@ class Controllerhome extends Controllerpage $datas = array_filter($datas, function ($var) { return $var !== ""; }); + $datas = array_map(function ($value) { + if($value === "!") { + return ""; + } else { + return $value; + } + }, $datas); $reset = $_POST['reset'] ?? []; $addtag = $_POST['addtag'] ?? ''; $addauthor = $_POST['addauthor'] ?? ''; -- cgit v1.2.3