Skip to content
Snippets Groups Projects
Unverified Commit e941ee82 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #14114 from lcdservices/5.13

#891 condition on id existenced when retrieving mailing hash
parents 8c7e1d41 70d870dc
Branches
Tags
No related merge requests found
......@@ -1775,7 +1775,7 @@ ORDER BY civicrm_email.is_bulkmail DESC
*/
public static function getMailingHash($id) {
$hash = NULL;
if (Civi::settings()->get('hash_mailing_url')) {
if (Civi::settings()->get('hash_mailing_url') && !empty($id)) {
$hash = CRM_Core_DAO::getFieldValue('CRM_Mailing_BAO_Mailing', $id, 'hash', 'id');
}
return $hash;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment