static function getDisplayEmail($postData, $email, &$email1, &$email2)
{
$postEmail1 = SCUserUtilities::getPostData($postData, 'email1');
$postEmail2 = SCUserUtilities::getPostData($postData, 'email2');
if($postEmail1 != '' || $postEmail2 != '')
{
$email1 = $postEmail1;
$email2 = $postEmail2;
}
else
{
$dbo = JFactory::getDBO();
$query = "SELECT id FROM #__users WHERE email=" . $dbo->quote($email);
$dbo->setQuery($query);
$jEmail = $dbo->loadResult();
if ($jEmail != null)
{
$email1 = "";
$email2 = "";
}
else
{
$email1 = $email;
$email2 = $email;
}
}
}
static function getDisplayEmail($postData, $email, &$email1, &$email2)
{
$postEmail1 = SCUserUtilities::getPostData($postData, 'email1');
$postEmail2 = SCUserUtilities::getPostData($postData, 'email2');
if($postEmail1 != '' || $postEmail2 != '')
{
$email = $postEmail1;
$email1 = $postEmail1;
$email2 = $postEmail2;
}
$dbo = JFactory::getDBO();
$query = "SELECT id FROM #__users WHERE email=" . $dbo->quote($email);
$dbo->setQuery($query);
$jEmail = $dbo->loadResult();
if ($jEmail != null)
{
$email1 = "";
$email2 = "";
}
else
{
$email1 = $email;
$email2 = $email;
}
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.