From 085dba1b73b11ff67184d9176dc53142249cdf12 Mon Sep 17 00:00:00 2001
From: Daniel Berthereau <Daniel.github@Berthereau.net>
Date: Mon, 30 Dec 2019 00:00:00 +0100
Subject: [PATCH] Updated Generic module.

---
 src/Generic/AbstractModule.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Generic/AbstractModule.php b/src/Generic/AbstractModule.php
index b915dfd..405d5a9 100644
--- a/src/Generic/AbstractModule.php
+++ b/src/Generic/AbstractModule.php
@@ -621,7 +621,9 @@ abstract class AbstractModule extends \Omeka\Module\AbstractModule
      */
     public function stringToList($string)
     {
-        return array_filter(array_map('trim', explode("\n", $this->fixEndOfLine($string))));
+        return array_filter(array_map('trim', explode("\n", $this->fixEndOfLine($string))), function ($v) {
+            return (bool) strlen($v);
+        });
     }
 
     /**
-- 
GitLab