Update statistics.class.php

Fixes #664