Fix a PHP notice for users with limited permissions when loading contact summary
authorMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 12 Feb 2020 15:41:48 +0000 (15:41 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 12 Feb 2020 15:41:48 +0000 (15:41 +0000)
CRM/Core/BAO/Note.php

index ce27f69cb6d3e3f1dd45b36e2dbd3bad375a0c22..1e839357c2329322dd323dc3bcea7cb4d22bf852 100644 (file)
@@ -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'])) {