diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 002195f102..cbc197e16e 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -2068,7 +2068,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut $mac['logintype'] = "voucher"; } } - if ($username = "unauthenticated") { + if ($username == "unauthenticated") { $mac['descr'] = "Auto-added"; } else { $mac['descr'] = "Auto-added for user {$username}";