diff --git a/modules/statistics/hooks/hook_cron.php b/modules/statistics/hooks/hook_cron.php
index e566b323661489d5830a91fce915fe2b9f30074c..87d599078f83a3a19d13c6f53a09dddcb3131267 100644
--- a/modules/statistics/hooks/hook_cron.php
+++ b/modules/statistics/hooks/hook_cron.php
@@ -18,6 +18,11 @@ function statistics_hook_cron(&$croninfo) {
 	try {
 		$aggregator = new sspmod_statistics_Aggregator();
 		$results = $aggregator->aggregate();
+		if (empty($results)) {
+			$croninfo['summary'][] = 'Output from statistics aggregator was empty.';
+		} else {
+			$aggregator->store($results);
+		}
 	} catch (Exception $e) {
 		$croninfo['summary'][] = 'Loganalyzer threw exception: ' . $e->getMessage();
 	}