From: jitendrapurohit Date: Fri, 13 Feb 2015 13:04:21 +0000 (+0530) Subject: warning fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7dd6f51695b81f572ae92cb476ff305f163e28b0;p=civicrm-core.git warning fix --- 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'];