diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm index 061bb33..dc8c1a9 100644 --- a/lib/Travelynx/Model/Users.pm +++ b/lib/Travelynx/Model/Users.pm @@ -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; }