diff options
-rw-r--r-- | etc/inc/ipsec.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index fb65efb..005fbde 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -489,7 +489,8 @@ function ipsec_dump_mobile() { $user['remote'] = $linea[2]; $user['logintime'] = $linea[3]; $user['spi'] = $linea[4]; - $mobile[] = $user; + if (!empty($user['username'])) + $mobile[] = $user; } pclose($fd); } |