if a feature category array has no items unset it

This commit is contained in:
Mario Vavti 2016-09-19 15:09:19 +02:00
parent eb7db62a64
commit 0cba82ce9c

View File

@ -442,7 +442,7 @@ function get_features($filtered = true) {
} }
} }
if(! $has_items) { if(! $has_items) {
$narr[$k] = ''; unset($narr[$k]);
} }
} }
for($x = 0; $x < count($narr); $x ++) { for($x = 0; $x < count($narr); $x ++) {