Fix enotice
authoreileen <emcnaughton@wikimedia.org>
Thu, 13 Oct 2016 14:10:51 +0000 (15:10 +0100)
committereileenmcnaugton <eileen@fuzion.co.nz>
Mon, 24 Oct 2016 02:17:44 +0000 (15:17 +1300)
CRM/Contact/BAO/Contact/Permission.php

index 43c5e0b440ffe89c0f21a29962998df1dcc02a59..7098ee9138711779592b839033255447fe83488b 100644 (file)
@@ -91,7 +91,7 @@ class CRM_Contact_BAO_Contact_Permission {
     $operation = ($type == CRM_Core_Permission::VIEW) ? 'View' : 'Edit';
 
     // add clause for deleted contacts, if the user doesn't have the permission to access them
-    $LEFT_JOIN_DELETED = $CAN_ACCESS_DELETED = '';
+    $LEFT_JOIN_DELETED = $AND_CAN_ACCESS_DELETED = '';
     if (!CRM_Core_Permission::check('access deleted contacts')) {
       $LEFT_JOIN_DELETED      = "LEFT JOIN civicrm_contact ON civicrm_contact.id = contact_id";
       $AND_CAN_ACCESS_DELETED = "AND civicrm_contact.is_deleted = 0";