33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-12-23 03:19:00 +00:00

Merge pull request #97 from brianteeman/patch-2

Fix search
This commit is contained in:
Michael Babker 2015-05-23 10:20:21 -04:00
commit ed82aea47a

View File

@ -128,7 +128,7 @@ class PullsModel extends \JModelDatabase
if (!empty($search))
{
$searchid = $search;
$searchid = $db->quote($db->escape($search, true));
$search = $db->quote('%' . $db->escape($search, true) . '%');
$query->where(
'(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' .