summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorplumbeo <plumbeo@users.noreply.github.com>2017-08-23 13:03:28 +0200
committerplumbeo <plumbeo@users.noreply.github.com>2017-08-23 13:03:28 +0200
commit07df3494bd9a508e568b4ae999369ec8b2d14ec2 (patch)
treebadd908fec7c7b256bfbe775c583c35619abc0bc /src/usr/local/www
parent658d1e7003e6c12cf62146dac42c1388dd5bfc8f (diff)
downloadpfsense-07df3494bd9a508e568b4ae999369ec8b2d14ec2.zip
pfsense-07df3494bd9a508e568b4ae999369ec8b2d14ec2.tar.gz
Captive portal: fix idle times in details popup
Explicitly cast $idle_time to integer.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/status_captiveportal.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/status_captiveportal.php b/src/usr/local/www/status_captiveportal.php
index 8950c2f..48dca3f 100644
--- a/src/usr/local/www/status_captiveportal.php
+++ b/src/usr/local/www/status_captiveportal.php
@@ -65,11 +65,11 @@ function print_details($cpent) {
$last_act = $last_act ? $last_act : $cpent[0];
$idle_time = time() - $last_act;
- printf(gettext("Idle time: %s") . "<br>", convert_seconds_to_dhms($idle_time));
+ printf(gettext("Idle time: %s") . "<br>", convert_seconds_to_dhms((int)$idle_time));
if (!empty($cpent[8])) {
$idle_time_left = $last_act + $cpent[8] - time();
- printf(gettext("Idle time left: %s") . "<br>", convert_seconds_to_dhms($idle_time_left));
+ printf(gettext("Idle time left: %s") . "<br>", convert_seconds_to_dhms((int)$idle_time_left));
}
}
OpenPOWER on IntegriCloud