aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-23 10:14:13 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-23 10:14:13 +0200
commit39b14b6b811ec65f8c8a812397f9ee04877cd53d (patch)
tree1f122a63a4f44aed278a54fab803706d77946997 /include/text.php
parent5536df51f58a65f5a42051b0466b1c13c9a9718a (diff)
parentac81a3a5effe51b82310bbd831dec06e7914e649 (diff)
downloadvolse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.tar.gz
volse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.tar.bz2
volse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/text.php b/include/text.php
index 4f28c6dbc..12b6b1137 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2089,9 +2089,9 @@ function xchan_query(&$items,$abook = true,$effective_uid = 0) {
}
foreach($items as $item) {
- if($item['owner_xchan'] && (! in_array($item['owner_xchan'],$arr)))
+ if($item['owner_xchan'] && (! in_array("'" . dbesc($item['owner_xchan']) . "'",$arr)))
$arr[] = "'" . dbesc($item['owner_xchan']) . "'";
- if($item['author_xchan'] && (! in_array($item['author_xchan'],$arr)))
+ if($item['author_xchan'] && (! in_array("'" . dbesc($item['author_xchan']) . "'",$arr)))
$arr[] = "'" . dbesc($item['author_xchan']) . "'";
}
}
@@ -2124,9 +2124,9 @@ function xchan_mail_query(&$item) {
$arr = array();
$chans = null;
if($item) {
- if($item['from_xchan'] && (! in_array($item['from_xchan'],$arr)))
+ if($item['from_xchan'] && (! in_array("'" . dbesc($item['from_xchan']) . "'",$arr)))
$arr[] = "'" . dbesc($item['from_xchan']) . "'";
- if($item['to_xchan'] && (! in_array($item['to_xchan'],$arr)))
+ if($item['to_xchan'] && (! in_array("'" . dbesc($item['to_xchan']) . "'",$arr)))
$arr[] = "'" . dbesc($item['to_xchan']) . "'";
}