33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-12-23 11:29: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)) if (!empty($search))
{ {
$searchid = $search; $searchid = $db->quote($db->escape($search, true));
$search = $db->quote('%' . $db->escape($search, true) . '%'); $search = $db->quote('%' . $db->escape($search, true) . '%');
$query->where( $query->where(
'(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' . '(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' .