From ef902ada94f36901cc4cec83c567e81ed87618d2 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 22 Apr 2021 18:25:53 +1200 Subject: [PATCH] Enotice fix --- CRM/Core/ManagedEntities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/ManagedEntities.php b/CRM/Core/ManagedEntities.php index 99da299d4b..f918bb0348 100644 --- a/CRM/Core/ManagedEntities.php +++ b/CRM/Core/ManagedEntities.php @@ -237,7 +237,7 @@ class CRM_Core_ManagedEntities { */ public function insertNewEntity($todo) { $result = civicrm_api($todo['entity'], 'create', $todo['params']); - if ($result['is_error']) { + if (!empty($result['is_error'])) { $this->onApiError($todo['entity'], 'create', $todo['params'], $result); } -- 2.25.1