From a46e7380c0827732cd777182e0d7107d593c9b46 Mon Sep 17 00:00:00 2001 From: hevengo <25843935+hevengo@users.noreply.github.com> Date: Sun, 10 Mar 2019 23:44:36 +0100 Subject: [PATCH] fixed count(string) error fixed: Warning: count(): Parameter must be an array or an object that implements Countable --- src/Metadata/Xmp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Metadata/Xmp.php b/src/Metadata/Xmp.php index 0872301..777dd48 100644 --- a/src/Metadata/Xmp.php +++ b/src/Metadata/Xmp.php @@ -498,7 +498,7 @@ private function setList($field, $value, $type, $ns) } - if (!$value || (!is_array($value) && count($value) == 0)) { + if (!$value || (!is_array($value) && strlen($value) == 0)) { // remove element $parent->parentNode->parentNode->removeChild($parent->parentNode); } else {