From: Matthew Wire Date: Wed, 12 Feb 2020 15:41:48 +0000 (+0000) Subject: Fix a PHP notice for users with limited permissions when loading contact summary X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9e19c4f7afb9c43c0b5a07282cac9a0eabee726f;p=civicrm-core.git Fix a PHP notice for users with limited permissions when loading contact summary --- diff --git a/CRM/Core/BAO/Note.php b/CRM/Core/BAO/Note.php index ce27f69cb6..1e839357c2 100644 --- a/CRM/Core/BAO/Note.php +++ b/CRM/Core/BAO/Note.php @@ -84,7 +84,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { CRM_Utils_Hook::notePrivacy($noteValues); - if (!$noteValues['privacy']) { + if (empty($noteValues['privacy'])) { return FALSE; } elseif (isset($noteValues['notePrivacy_hidden'])) {