Commit bf278583 authored by cividesk's avatar cividesk

Do not count geoip_country = NULL

parent c700bc71
......@@ -47,7 +47,7 @@ $queries[] = array(
'query' => "
SELECT geoip_country AS country, COUNT(*) AS num_sites
FROM pingback_site s
WHERE is_active = 1
WHERE is_active = 1 AND geoip_country IS NOT NULL
GROUP BY country
HAVING num_sites > 10 -- privacy: do not report marginal countries
ORDER BY num_sites DESC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment