diff options
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/Controllerhome.php | 7 |
1 files changed, 7 insertions, 0 deletions
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'] ?? ''; |