aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/base.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-02-25 19:58:03 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-02-25 19:58:03 +0100
commit0c3fae0f18621498c9b4355fabb2e22d04891d5c (patch)
tree4e82f21c9d74fc52c4efca57bfa2532dd9269b7b /phpBB/includes/search/base.php
parentb9da8f3a3309fd7cea8bfabfdf75e3dea4bf7b9a (diff)
parent825aef72e89cb1150945950de93fa5cc0d9acbc1 (diff)
downloadforums-0c3fae0f18621498c9b4355fabb2e22d04891d5c.tar
forums-0c3fae0f18621498c9b4355fabb2e22d04891d5c.tar.gz
forums-0c3fae0f18621498c9b4355fabb2e22d04891d5c.tar.bz2
forums-0c3fae0f18621498c9b4355fabb2e22d04891d5c.tar.xz
forums-0c3fae0f18621498c9b4355fabb2e22d04891d5c.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10630] Use sql_like_expression() method instead of hardcoded LIKE '%x%' [ticket/10630] Perform array_unique on authors array before creating the query
Diffstat (limited to 'phpBB/includes/search/base.php')
-rw-r--r--phpBB/includes/search/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/search/base.php b/phpBB/includes/search/base.php
index f691bc942f..b364dead9a 100644
--- a/phpBB/includes/search/base.php
+++ b/phpBB/includes/search/base.php
@@ -294,7 +294,7 @@ class phpbb_search_base
$sql_where = '';
foreach ($authors as $author)
{
- $sql_where .= (($sql_where) ? ' OR ' : '') . 'search_authors LIKE \'% ' . (int) $author . ' %\'';
+ $sql_where .= (($sql_where) ? ' OR ' : '') . 'search_authors ' . $db->sql_like_expression($db->any_char . ' ' . (int) $author . ' ' . $db->any_char);
}
$sql = 'SELECT search_key