[otrs-cvs] ITSMChangeManagement/Kernel/System/ITSMChange/Event Notification.pm, 1.31, 1.32

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/ITSMChangeManagement/Kernel/System/ITSMChange/Event
In directory lancelot:/tmp/cvs-serv22990

Modified Files:
	Notification.pm 
Log Message:
Improved error handling.

Author: mh

Index: Notification.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/System/ITSMChange/Event/Notification.pm,v
retrieving revision 1.31
retrieving revision 1.32
diff -2 -u -d -r1.31 -r1.32
--- Notification.pm	22 Nov 2012 08:47:47 -0000	1.31
+++ Notification.pm	19 Dec 2012 13:25:34 -0000	1.32
@@ -383,4 +383,5 @@
                 WorkOrderID => $Param{WorkOrderID},
                 UserID      => $Param{UserID},
+
             );
             $Param{ChangeID} = $WorkOrder->{ChangeID};
@@ -398,4 +399,8 @@
     );
 
+    return if !$Change;
+    return if ref $Change ne 'HASH';
+    return if !%{$Change};
+
     for my $Recipient ( @{ $Param{Recipients} } ) {
 
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.