[open-ils-commits] r10807 -
trunk/Open-ILS/src/perlmods/OpenILS/Application
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 9 11:56:32 EDT 2008
Author: erickson
Date: 2008-10-09 11:56:30 -0400 (Thu, 09 Oct 2008)
New Revision: 10807
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
Log:
don't call ->value if no setting exists, return empty string
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2008-10-09 15:35:37 UTC (rev 10806)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2008-10-09 15:56:30 UTC (rev 10807)
@@ -148,6 +148,7 @@
if($setting) {
my $val = $e->search_actor_user_setting({usr => $user_id, name => $setting})->[0];
+ return '' unless $val;
return OpenSRF::Utils::JSON->JSON2perl($val->value);
} else {
my $s = $e->search_actor_user_setting({usr => $user_id});
More information about the open-ils-commits
mailing list