[joomla] Fixed incorrect logic.