Users: use_external_services: correctly handle := 0

This commit is contained in:
Daniel Friesel 2022-07-15 21:01:34 +02:00
parent 8bc32dd034
commit c756f045b2
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -497,7 +497,7 @@ sub use_external_services {
my $uid = $opt{uid};
my $value = $opt{set};
if ($value) {
if (defined $value) {
if ( $value < 0 or $value > 3 ) {
$value = 0;
}