summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-05-01 22:36:44 +0200
committerErmal LUÇI <eri@pfsense.org>2015-05-01 22:36:44 +0200
commit3ce84694f973ebaa33c9faf7d3a0371dbad2450d (patch)
treeeef8a2dffbb16f8fe7213cb4bd18a9e40b11fc11 /etc
parent620c4df1bcc250d196456da237ca58e8047b5be7 (diff)
downloadpfsense-3ce84694f973ebaa33c9faf7d3a0371dbad2450d.zip
pfsense-3ce84694f973ebaa33c9faf7d3a0371dbad2450d.tar.gz
Ticket #4652 actually return value as expected!
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 7d9a0a9..87a4a74 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1164,9 +1164,9 @@ function captiveportal_get_last_activity($ip, $mac = NULL, $table = 1) {
if (is_array($ipfwoutput)) {
/* Workaround for #46652 */
if ($ipfwoutput['packets'] > 0) {
- return $ipfw_tbl1['timestamp'];
- } else {
return $ipfwoutput['timestamp'];
+ } else {
+ return 0;
}
}
OpenPOWER on IntegriCloud