captive portal: during insert via web, start counting with 1

This commit is contained in:
Matthias Strubel 2017-07-01 14:43:17 +02:00
parent 35053eef37
commit f2f0274f78
1 changed files with 1 additions and 1 deletions

View File

@ -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
}