Adding Matrix tests

This commit is contained in:
Yung Han Khoe 2009-06-03 13:22:32 +00:00
parent d4215ba769
commit 15b197976e
2 changed files with 20 additions and 10 deletions

View file

@ -432,7 +432,7 @@ sub incrementCounter {
my $currentIp = $self->session->env->get("HTTP_X_FORWARDED_FOR");
unless ($self->get($counter."LastIp") eq $currentIp) {
unless ($self->get($counter."LastIp") && ($self->get($counter."LastIp") eq $currentIp)) {
$self->update({
$counter."LastIp" => $currentIp,
$counter => $self->get($counter)+1