aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-20 20:56:58 -0700
committerredmatrix <git@macgirvin.com>2016-06-20 20:56:58 -0700
commit63423c8ee1f750d855c75ed67205076d21eda4f1 (patch)
tree5340cfc961b157b40eaa1b877dc4e0ca39e77f38
parented166608670c5b5d237c43bd0d672502d5b624f5 (diff)
downloadvolse-hubzilla-63423c8ee1f750d855c75ed67205076d21eda4f1.tar.gz
volse-hubzilla-63423c8ee1f750d855c75ed67205076d21eda4f1.tar.bz2
volse-hubzilla-63423c8ee1f750d855c75ed67205076d21eda4f1.zip
make sure the optimisations are reliable
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 3754675d1..4f28c6dbc 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(strlen($x[$idx]) && (! in_array($x[$idx],$t))) {
+ if(array_key_exists($idx,$x) && strlen($x[$idx]) && (! in_array($x[$idx],$t))) {
$t[] = $x[$idx];
}
}