From 7dd6f51695b81f572ae92cb476ff305f163e28b0 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 13 Feb 2015 18:34:21 +0530 Subject: [PATCH] warning fix --- CRM/Core/BAO/Dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Dashboard.php b/CRM/Core/BAO/Dashboard.php index 2de9a9394e..9d589d8988 100644 --- a/CRM/Core/BAO/Dashboard.php +++ b/CRM/Core/BAO/Dashboard.php @@ -185,7 +185,7 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard { $assignDashlets = civicrm_api3("dashboard_contact", "create", $defaultDashlet); if (!$flatFormat) { $values = $assignDashlets['values'][$assignDashlets['id']]; - $dashlets[$values['column_no']][$values['weight']-$values['dashboard_id']] = $values['is_minimized']; + $dashlets[$values['column_no']][$values['weight'] - $values['dashboard_id']] = $values['is_minimized']; } else { $dashlets[$dashboard_id] = $defaultDashlet['dashboard_id']; -- 2.25.1