diff --git a/modules/statistics/www/showstats.php b/modules/statistics/www/showstats.php
index aa0c67b0fb00594c7ab778d68f35cdcd38211451..9ca6399f70d20527b7e8f00e7749dabf7b1e7d58 100644
--- a/modules/statistics/www/showstats.php
+++ b/modules/statistics/www/showstats.php
@@ -71,8 +71,8 @@ if (!is_readable($resultFileName))
 	throw new Exception('Could not read statitics file [' . $resultFileName . ']. Bad file permissions?');
 $resultfile = file_get_contents($resultFileName);
 $results = unserialize($resultfile);
-
-
+if (empty($results))
+	throw new Exception('Aggregated statistics in file [' . $resultFileName . '] was empty.');
 
 $dataset = array();
 $axis = array();