return null as the setting value when a user setting is not applied, instead of retur...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Dec 2009 15:40:17 +0000 (15:40 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Dec 2009 15:40:17 +0000 (15:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15141 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor.pm

index d1059c7..07ac6dd 100644 (file)
@@ -190,7 +190,7 @@ sub user_settings {
     sub get_setting {
         my($e, $user_id, $setting) = @_;
         my $val = $e->search_actor_user_setting({usr => $user_id, name => $setting})->[0];
-        return '' unless $val; # XXX this should really return undef, but needs testing
+        return undef unless $val; # XXX this should really return undef, but needs testing
         return OpenSRF::Utils::JSON->JSON2perl($val->value);
     }