aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-04 14:48:14 -0800
committerfriendica <info@friendica.com>2015-01-04 14:48:14 -0800
commit47526cdecf234bd097072737e5af2a3835d7cc9c (patch)
treed72f4b3a8199d1b0ea784d89c55ca45984faee28 /mod
parent82a37ebae3622c28b7ffcc21c5e3d8b78279ebdf (diff)
parent91cb76aa99d56a134717dfe427d3abd8e81061af (diff)
downloadvolse-hubzilla-47526cdecf234bd097072737e5af2a3835d7cc9c.tar.gz
volse-hubzilla-47526cdecf234bd097072737e5af2a3835d7cc9c.tar.bz2
volse-hubzilla-47526cdecf234bd097072737e5af2a3835d7cc9c.zip
Merge branch 'master' into trinidad
Diffstat (limited to 'mod')
-rw-r--r--mod/acl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/acl.php b/mod/acl.php
index 8c6eae0b0..c18b56d8b 100644
--- a/mod/acl.php
+++ b/mod/acl.php
@@ -30,7 +30,7 @@ function acl_init(&$a){
if ($search != "") {
$sql_extra = " AND `name` LIKE " . protect_sprintf( "'%" . dbesc($search) . "%'" ) . " ";
- $sql_extra2 = "AND ( xchan_name LIKE " . protect_sprintf( "'%" . dbesc($search) . "%'" ) . " OR xchan_addr LIKE " . protect_sprintf( "'%" . dbesc($search) . "%'" ) . ") ";
+ $sql_extra2 = "AND ( xchan_name LIKE " . protect_sprintf( "'%" . dbesc($search) . "%'" ) . " OR xchan_addr LIKE " . protect_sprintf( "'%" . dbesc($search) . "%@%'" ) . ") ";
// This horrible mess is needed because position also returns 0 if nothing is found. W/ould be MUCH easier if it instead returned a very large value
// Otherwise we could just order by LEAST(POSTION($search IN xchan_name),POSITION($search IN xchan_addr)).