[open-ils-commits] r16686 - trunk/Open-ILS/src/perlmods/OpenILS (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jun 11 14:39:18 EDT 2010


Author: erickson
Date: 2010-06-11 14:39:13 -0400 (Fri, 11 Jun 2010)
New Revision: 16686

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Event.pm
Log:
$e may false (i.e. 0=SUCCESS).  it's undefined we need to avoid

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Event.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Event.pm	2010-06-11 17:56:58 UTC (rev 16685)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Event.pm	2010-06-11 18:39:13 UTC (rev 16686)
@@ -23,7 +23,8 @@
     _load_events() unless $events;
 
     throw OpenSRF::EX ("Bad event name: $event") unless $event;
-    my $e = $events->{$event} || '';
+    my $e = $events->{$event};
+    $e = '' unless defined $e;
 
     my(   $m,   $f,   $l ) = caller(0);
     my(  $mm,  $ff,  $ll ) = caller(1);



More information about the open-ils-commits mailing list