Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion libraries/cms/component/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public static function isInstalled($option)
->from($db->quoteName('#__extensions'))
->where($db->quoteName('element') . ' = ' . $db->quote($option))
->where($db->quoteName('type') . ' = ' . $db->quote('component'))
->where($db->quoteName('state') . ' = 0')
)->loadResult();
}

Expand Down Expand Up @@ -438,7 +439,9 @@ protected static function load($option)
$query = $db->getQuery(true)
->select($db->quoteName(array('extension_id', 'element', 'params', 'enabled'), array('id', 'option', null, null)))
->from($db->quoteName('#__extensions'))
->where($db->quoteName('type') . ' = ' . $db->quote('component'));
->where($db->quoteName('type') . ' = ' . $db->quote('component'))
->where($db->quoteName('state') . ' = 0')
->where($db->quoteName('enabled') . ' = 1');
$db->setQuery($query);

$cache = JFactory::getCache('_system', 'callback');
Expand Down