warning fix
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 13 Feb 2015 13:04:21 +0000 (18:34 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 13 Feb 2015 13:04:21 +0000 (18:34 +0530)
CRM/Core/BAO/Dashboard.php

index 2de9a9394e57887204e17a7ac330b720202fae4e..9d589d8988ece41b3d7eee7648b939024ac0c4ba 100644 (file)
@@ -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'];