Skip to content
Snippets Groups Projects
Commit 9256fe9f authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

throw error when aggregated file was empty...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1326 44740490-163a-0410-bde0-09ae8108e29a
parent b0f3d4fe
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment