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

Merge pull request #14115 from civicrm/5.13

5.13
parents 00fff0a6 e941ee82
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