summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-07-15 21:01:34 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-07-15 21:01:34 +0200
commitc756f045b2d51b4068d0d291ebf0a1efde169a9e (patch)
tree24565ef2fe4fd371d44177068903acb4b803e373 /lib/Travelynx/Model
parent8bc32dd034810a209220567813f4277f45b2b8d7 (diff)
Users: use_external_services: correctly handle := 0
Diffstat (limited to 'lib/Travelynx/Model')
-rw-r--r--lib/Travelynx/Model/Users.pm2
1 files changed, 1 insertions, 1 deletions
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;
}