From: eileen Date: Thu, 22 Apr 2021 06:25:53 +0000 (+1200) Subject: Enotice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ef902ada94f36901cc4cec83c567e81ed87618d2;p=civicrm-core.git Enotice fix --- 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); }