diff --git a/libraries/joomla/plugin/helper.php b/libraries/joomla/plugin/helper.php index 16fd805066..82ddbc6dda 100644 --- a/libraries/joomla/plugin/helper.php +++ b/libraries/joomla/plugin/helper.php @@ -99,7 +99,7 @@ public static function importPlugin($type, $plugin = null, $autocreate = true, $ // Get the specified plugin(s). for ($i = 0, $t = count($plugins); $i < $t; $i++) { - if ($plugins[$i]->type == $type && ($plugins[$i]->name == $plugin || $plugin === null)) { + if ($plugins[$i]->type == $type && ($plugin === null || $plugins[$i]->name == $plugin)) { self::_import($plugins[$i], $autocreate, $dispatcher); $results = true; }