Skip to content

Commit

Permalink
Fix issue joomla#7053
Browse files Browse the repository at this point in the history
  • Loading branch information
jlainezs committed Sep 12, 2015
1 parent 637d8c0 commit 2f4cede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/com_contact/models/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@ protected function getContactQuery($pk = null)

if (empty($result))
{
JError::raiseError(404, JText::_('COM_CONTACT_ERROR_CONTACT_NOT_FOUND'));
throw new Exception(JText::_('COM_CONTACT_ERROR_CONTACT_NOT_FOUND'));
}
}
catch (Exception $e)
{
$this->setError($e);
$this->setError($e->getMessage());

return false;
}
Expand Down

0 comments on commit 2f4cede

Please sign in to comment.