Merge pull request #486 from abhishek-webkul/fix-dashboard
Fix undefined variable issue on admin dashboard
This commit is contained in:
@@ -59,13 +59,6 @@ class DashOccupancy extends Module
|
||||
|
||||
public function hookDashboardZoneOne()
|
||||
{
|
||||
$this->context->smarty->assign(array(
|
||||
'count_total' => sprintf('%02d', $occupancyData['count_total']),
|
||||
'count_occupied' => sprintf('%02d', $occupancyData['count_occupied']),
|
||||
'count_available' => sprintf('%02d', $occupancyData['count_available']),
|
||||
'count_unavailable' => sprintf('%02d', $occupancyData['count_unavailable']),
|
||||
));
|
||||
|
||||
return $this->display(__FILE__, 'dashboard_zone_one.tpl');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user