Skip to content

Commit

Permalink
Use $db->quote('*') instead of '*'
Browse files Browse the repository at this point in the history
  • Loading branch information
smz committed Dec 25, 2014
1 parent bfdced4 commit e8a544a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/legacy/categories/categories.php
Expand Up @@ -272,7 +272,7 @@ protected function _load($id)

if ($this->_options['currentlang'] !== 0)
{
$queryjoin .= ' AND (i.language = \'*\' OR i.language = ' . $db->quote($this->_options['currentlang']) . ')';
$queryjoin .= ' AND (i.language = ' . $db->quote('*') . ' OR i.language = ' . $db->quote($this->_options['currentlang']) . ')';
}

$query->join('LEFT', $queryjoin);
Expand Down

0 comments on commit e8a544a

Please sign in to comment.