$e may false (i.e. 0=SUCCESS). it's undefined we need to avoid
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Jun 2010 18:39:13 +0000 (18:39 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Jun 2010 18:39:13 +0000 (18:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16686 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Event.pm

index 64837b0..805859d 100644 (file)
@@ -23,7 +23,8 @@ sub new {
     _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);