<?php
/**
 * @package	AcyMailing for Joomla!
 * @version	4.8.1
 * @author	acyba.com
 * @copyright	(C) 2009-2014 ACYBA S.A.R.L. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
	$importHelper = acymailing_get('helper.import');
	$importHelper->setciviprefix();
	$db = JFactory::getDBO();
	$db->setQuery('SELECT count(*) FROM '.$importHelper->civiprefix.'email WHERE is_primary = 1');
	$resultUsers = $db->loadResult();

	echo JText::sprintf('USERS_IN_COMP',$resultUsers,'CiviCRM');
