diff --git a/Repositories/statistics/includes/inc.class.mysql.es.php b/Repositories/statistics/includes/inc.class.mysql.es.php index 0ecd656..05a3ce9 100755 --- a/Repositories/statistics/includes/inc.class.mysql.es.php +++ b/Repositories/statistics/includes/inc.class.mysql.es.php @@ -340,7 +340,7 @@ $this->addArchiveIDCondition( $id, $where_parts ); // Generate type enquiry - $this->addViewTypeCondition( 'download', $where_parts ); + $this->addViewTypeCondition( $type, $where_parts ); // generate date enquiry $this->addYearCondition( $year, $where_parts );