diff --git a/modules/statistics/lib/Aggregator.php b/modules/statistics/lib/Aggregator.php
index 2c3be7c49d575d553293cae49d5163df48bd0dae..6a75354e0d5071961006c79e70d74de0f84cd1db 100644
--- a/modules/statistics/lib/Aggregator.php
+++ b/modules/statistics/lib/Aggregator.php
@@ -85,7 +85,9 @@ class sspmod_statistics_Aggregator {
 			
 				$timeslot = $datehandler->toSlot($epoch, $rule['slot']);
 				$fileslot = $datehandler->toSlot($epoch, $rule['fileslot']); //print_r($content);
-				if (!isset($rule['action']) && ($action !== $rule['action'])) continue;
+				
+				if (isset($rule['action']) && ($action !== $rule['action'])) continue;
+				
 		
 				$difcol = $content[$rule['col']]; // echo '[...' . $difcol . '...]';