Enotice fix
authoreileen <emcnaughton@wikimedia.org>
Thu, 22 Apr 2021 06:25:53 +0000 (18:25 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 22 Apr 2021 06:25:53 +0000 (18:25 +1200)
CRM/Core/ManagedEntities.php

index 99da299d4b895057d91ecd2d0ad2ad7d23e72538..f918bb0348f7a5d96140ccda6a4c923f9733cb6f 100644 (file)
@@ -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);
     }