aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-09-19 15:09:19 +0200
committerMario Vavti <mario@mariovavti.com>2016-09-19 15:09:19 +0200
commit0cba82ce9c23ea4db141d2d5db3dcfcb4a4fe7dc (patch)
tree8a433673d6fcb2a67b680e3423aa5c900167f911
parenteb7db62a64c9933b0969d040019f8f64c167ed90 (diff)
downloadvolse-hubzilla-0cba82ce9c23ea4db141d2d5db3dcfcb4a4fe7dc.tar.gz
volse-hubzilla-0cba82ce9c23ea4db141d2d5db3dcfcb4a4fe7dc.tar.bz2
volse-hubzilla-0cba82ce9c23ea4db141d2d5db3dcfcb4a4fe7dc.zip
if a feature category array has no items unset it
-rw-r--r--include/features.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/features.php b/include/features.php
index 1968a1f47..d1b38b48e 100644
--- a/include/features.php
+++ b/include/features.php
@@ -442,7 +442,7 @@ function get_features($filtered = true) {
}
}
if(! $has_items) {
- $narr[$k] = '';
+ unset($narr[$k]);
}
}
for($x = 0; $x < count($narr); $x ++) {