From: eileen Date: Mon, 6 Jun 2016 14:45:51 +0000 (-0600) Subject: CRM-18675 do extra check before trying to create dashlets to avoid unexpected message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fbd19c8023a2c26bf7e056cf37bdb5a1ca161a1f;p=civicrm-core.git CRM-18675 do extra check before trying to create dashlets to avoid unexpected message --- diff --git a/CRM/Core/BAO/Dashboard.php b/CRM/Core/BAO/Dashboard.php index 5759ae679d..51caf40144 100644 --- a/CRM/Core/BAO/Dashboard.php +++ b/CRM/Core/BAO/Dashboard.php @@ -168,7 +168,7 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard { $defaultDashlets = array(); $defaults = array('blog' => 1, 'getting-started' => '0'); foreach ($defaults as $name => $column) { - if (!empty($allDashlets[$name])) { + if (!empty($allDashlets[$name]) && !empty($allDashlets[$name]['id'])) { $defaultDashlets[$name] = array( 'dashboard_id' => $allDashlets[$name]['id'], 'is_active' => 1,