Skip to content

Commit

Permalink
Line length
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Oct 12, 2014
1 parent 06c31b8 commit 9c57934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/com_banners/models/banners.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ protected function getListQuery()
foreach ($keywords as $keyword)
{
$keyword = trim($keyword);
$condition1 = "a.own_prefix=1 AND a.metakey_prefix=SUBSTRING(" . $db->quote($keyword) . ",1,LENGTH( a.metakey_prefix)) OR a.own_prefix=0 AND cl.own_prefix=1 AND cl.metakey_prefix=SUBSTRING(" . $db->quote($keyword) . ",1,LENGTH(cl.metakey_prefix)) OR a.own_prefix=0 AND cl.own_prefix=0 AND " . ($prefix == substr($keyword, 0, strlen($prefix)) ? '1' : '0');
$condition1 = "a.own_prefix=1 AND a.metakey_prefix=SUBSTRING(" . $db->quote($keyword) .
",1,LENGTH( a.metakey_prefix)) OR a.own_prefix=0 AND cl.own_prefix=1 AND cl.metakey_prefix=SUBSTRING(" . $db->quote($keyword) .
",1,LENGTH(cl.metakey_prefix)) OR a.own_prefix=0 AND cl.own_prefix=0 AND "
. ($prefix == substr($keyword, 0, strlen($prefix)) ? '1' : '0');

$condition2 = "a.metakey REGEXP '[[:<:]]" . $db->escape($keyword) . "[[:>:]]'";

Expand Down

0 comments on commit 9c57934

Please sign in to comment.