aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controllerhome.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-01-11 18:48:47 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-01-11 18:48:47 +0100
commitb7c2d553face9ccdc5f96bcaaa181510c4328530 (patch)
treea560f1750128eb5f4b333e6b5f95dd765e840959 /app/class/Controllerhome.php
parentc599b349667630b328ab2560abccbb7e4fe47801 (diff)
downloadwcms-b7c2d553face9ccdc5f96bcaaa181510c4328530.tar.gz
wcms-b7c2d553face9ccdc5f96bcaaa181510c4328530.zip
multi edit :
- title - description
Diffstat (limited to 'app/class/Controllerhome.php')
-rw-r--r--app/class/Controllerhome.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php
index 6e691a6..d8c126d 100644
--- a/app/class/Controllerhome.php
+++ b/app/class/Controllerhome.php
@@ -130,7 +130,10 @@ class Controllerhome extends Controllerpage
public function multiedit()
{
if ($this->user->issupereditor() && isset($_POST['pagesid'])) {
- $datas = $_POST['datas'] ?? [];
+ $datas = $_POST['datas']?? [];
+ $datas = array_filter($datas, function ($var) {
+ return $var !== "";
+ });
$reset = $_POST['reset'] ?? [];
$addtag = $_POST['addtag'] ?? '';
$addauthor = $_POST['addauthor'] ?? '';