From 6e022a78f6f1ac9e0b481433d6ac670dd5d5f119 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Mon, 3 Mar 2014 21:29:10 +0100 Subject: [PATCH] refs #57 also delete the last table --- plugins/Insights/API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Insights/API.php b/plugins/Insights/API.php index f26bec619ce..62f6a4598f7 100644 --- a/plugins/Insights/API.php +++ b/plugins/Insights/API.php @@ -55,7 +55,7 @@ public function getInsightsOverview($idSite, $period, $date) $reportTableIds[] = $table->getId(); $lastTableId = $dataTableManager->getMostRecentTableId(); - for ($index = $firstTableId; $index < $lastTableId; $index++) { + for ($index = $firstTableId; $index <= $lastTableId; $index++) { if (!in_array($index, $reportTableIds)) { DataTable\Manager::getInstance()->deleteTable($index); }