diff --git a/Repositories/statistics/includes/inc.html.cumulative_usage_country.es.php b/Repositories/statistics/includes/inc.html.cumulative_usage_country.es.php index ed13cc5..6241922 100755 --- a/Repositories/statistics/includes/inc.html.cumulative_usage_country.es.php +++ b/Repositories/statistics/includes/inc.html.cumulative_usage_country.es.php @@ -18,10 +18,9 @@ } else { // Output table for "real" countries. // Compute the longest bar. - $max_count = getMaxCount( 'country' ); // NJS 2006-06-14: You never know, there may be no downloads or - // abstracts yet... - $max_count = max( $max_count, 1 ); + // abstracts yet, so make sure it's at least 1 to avoid div/0 errors. + $max_count = max( getMaxCount( 'country' ), 1 ); print "\n"; print "\n"; @@ -37,8 +36,7 @@ print '\n"; - $max_count = getMaxCount( 'bot' ); - $max_count = max( $max_count, 1 ); + $max_count = max( getMaxCount( 'bot' ), 1 ); print ''; print '

Downloads by country (derived from IP address of query)

'; print "

Downloads by automated indexers and crawlers

Click on a search engine name or icon to view details of the eprints that have been indexed by that engine.
Search engine