diff options
-rwxr-xr-x | custom_userhistory.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom_userhistory.cgi b/custom_userhistory.cgi index 7c13740ba..2208c8134 100755 --- a/custom_userhistory.cgi +++ b/custom_userhistory.cgi @@ -20,6 +20,10 @@ print $cgi->header(); my $matchstr = $cgi->param('matchstr'); my $userid = $cgi->param('userid'); +if(!defined($matchstr) and !defined($userid)) { + print "No search parameters specified!<br/>"; + exit(0); +} exit 0 if !defined($matchstr) and !defined($userid); my $limit = $cgi->param('limit'); |