diff --git a/webtools/webstats/getstats.cgi b/webtools/webstats/getstats.cgi index 1dc6583fb0fd..8f6b1d690e02 100755 --- a/webtools/webstats/getstats.cgi +++ b/webtools/webstats/getstats.cgi @@ -115,6 +115,9 @@ my @row = $query->fetchrow(); if ($row[0] > 10) { Punt("Sorry; you selected $row[0] pages, but I can only graph up to 10."); } +if ($row[0] < 1) { + Punt("Sorry; I could not find any pages matching what you specified. (Page names start with a leading /, like '/news.html'.)"); +}