aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 481fdda16..97d81e973 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -753,8 +753,9 @@
if (is_string($string)) {
$ar = explode(",",$string);
- $ar = array_map('trim', $ar);
- $ar = array_map('strtolower', $ar);
+ $ar = array_map('trim', $ar); // trim blank spaces
+ $ar = array_map('strtolower', $ar); // make lower case
+ $ar = array_filter($ar, 'is_not_null'); // Remove null values
return $ar;
}
return false;