From: Pradeep Nayak Date: Fri, 28 Aug 2015 09:54:30 +0000 (+0530) Subject: CRM-16906, added error message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=32f300f54c04ea142dbb9f9dd895f30b48efbb2f;p=civicrm-core.git CRM-16906, added error message ---------------------------------------- * CRM-16906: Ensure safe chars for Petition cookies https://issues.civicrm.org/jira/browse/CRM-16906 --- diff --git a/CRM/Campaign/BAO/Petition.php b/CRM/Campaign/BAO/Petition.php index 55f411550c..ded3df8b44 100644 --- a/CRM/Campaign/BAO/Petition.php +++ b/CRM/Campaign/BAO/Petition.php @@ -279,7 +279,7 @@ AND tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )"; return TRUE; } else { - // TODO: raise an error? + CRM_Core_Error::fatal(ts('Petition Id and/or Activity Id is not of the type Positive.')); return FALSE; } }