diff --git a/plugins/PrivacyManager/Controller.php b/plugins/PrivacyManager/Controller.php index 0c4459d9633953275d80a3095bdc783fe52ed7d6..db3ff0f5db934e017bb8711bf41f928d43d7ff91 100644 --- a/plugins/PrivacyManager/Controller.php +++ b/plugins/PrivacyManager/Controller.php @@ -208,7 +208,9 @@ class Piwik_PrivacyManager_Controller extends Piwik_Controller_Admin } else // if just deleting rows { - $totalAfterPurge -= ($tableTotalBytes / $status['Rows']) * $deletedDataSummary[$tableName]; + if($status['Rows'] > 0) { + $totalAfterPurge -= ($tableTotalBytes / $status['Rows']) * $deletedDataSummary[$tableName]; + } } } }