aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-20 20:34:19 -0700
committerredmatrix <git@macgirvin.com>2016-06-20 20:34:19 -0700
commited166608670c5b5d237c43bd0d672502d5b624f5 (patch)
treeffdbb34528414abde4bbcc6b8b4d3414990c416f /include/text.php
parent9c9d6363af22eeec7f38856302abb3251cb78a10 (diff)
downloadvolse-hubzilla-ed166608670c5b5d237c43bd0d672502d5b624f5.tar.gz
volse-hubzilla-ed166608670c5b5d237c43bd0d672502d5b624f5.tar.bz2
volse-hubzilla-ed166608670c5b5d237c43bd0d672502d5b624f5.zip
code optimisation
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 22f4556a8..3754675d1 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2050,7 +2050,7 @@ function ids_to_array($arr,$idx = 'id') {
$t = array();
if($arr) {
foreach($arr as $x) {
- if(! in_array($x[$idx],$t)) {
+ if(strlen($x[$idx]) && (! in_array($x[$idx],$t))) {
$t[] = $x[$idx];
}
}