captive portal: during insert via web, start counting with 1
This commit is contained in:
parent
35053eef37
commit
f2f0274f78
|
@ -110,7 +110,7 @@ function count_ip($ip, $do_only_insert="no" , $amount=1 ){
|
|||
$cnt = $row['counter'] + $amount;
|
||||
$stmt= "UPDATE access SET counter = :cnt WHERE ip = :ip ";
|
||||
} else {
|
||||
$cnt = 0;
|
||||
$cnt = 1;
|
||||
$stmt=$insert;
|
||||
// This should not happen, because we get an entry through dnsmasq
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue