aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-01 11:03:26 +0000
committerMario <mario@mariovavti.com>2023-07-01 11:03:26 +0000
commit4f03272a5f4c33f6c893b6f56f43fe5e839173b3 (patch)
tree98c13a7fabccf9aa1dbe164532db68703d7d6dbf /include/text.php
parent7755936a2ef31d8ad9976d6fe80eb85f0b816f70 (diff)
downloadvolse-hubzilla-4f03272a5f4c33f6c893b6f56f43fe5e839173b3.tar.gz
volse-hubzilla-4f03272a5f4c33f6c893b6f56f43fe5e839173b3.tar.bz2
volse-hubzilla-4f03272a5f4c33f6c893b6f56f43fe5e839173b3.zip
unify code for selecting deliverable abook xchans
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/text.php b/include/text.php
index dcf0980c5..c038d3d3d 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2529,26 +2529,26 @@ function check_webbie($arr) {
return '';
}
-function ids_to_array($arr,$idx = 'id') {
- $t = array();
+function ids_to_array($arr, $idx = 'id') {
+ $t = [];
if($arr) {
foreach($arr as $x) {
- if(array_key_exists($idx,$x) && 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];
}
}
}
- return($t);
+ return $t;
}
-function ids_to_querystr($arr,$idx = 'id',$quote = false) {
- $t = array();
+function ids_to_querystr($arr, $idx = 'id', $quote = false) {
+ $t = [];
if($arr) {
foreach($arr as $x) {
- if(! in_array($x[$idx],$t)) {
+ if(!in_array($x[$idx], $t)) {
if($quote)
$t[] = "'" . dbesc($x[$idx]) . "'";
else
@@ -2556,7 +2556,7 @@ function ids_to_querystr($arr,$idx = 'id',$quote = false) {
}
}
}
- return(implode(',', $t));
+ return implode(',', $t);
}
/**
@@ -2700,7 +2700,7 @@ function stringify_array_elms(&$arr, $escape = false) {
function stringify_array($arr, $escape = false) {
if($arr) {
stringify_array_elms($arr, $escape);
- return(implode(',',$arr));
+ return(implode(',', $arr));
}
return EMPTY_STR;
}