Skip to content

Commit

Permalink
Improving query to use indexes better. Fixes #5101
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Nov 16, 2014
1 parent 725da31 commit 711f84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/cms/plugin/helper.php
Expand Up @@ -301,9 +301,9 @@ protected static function load()
$query = $db->getQuery(true)
->select('folder AS type, element AS name, params')
->from('#__extensions')
->where('enabled >= 1')
->where('enabled = 1')
->where('type =' . $db->quote('plugin'))
->where('state >= 0')
->where('state IN (0,1)')
->where('access IN (' . $levels . ')')
->order('ordering');

Expand Down

0 comments on commit 711f84f

Please sign in to comment.