Skip to content

Commit

Permalink
refs #57 also delete the last table
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Mar 3, 2014
1 parent cbe88c1 commit 6e022a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Insights/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6e022a7

Please sign in to comment.