[otrs-cvs] iPhoneHandle/bin/cgi-bin json.pl,1.24,1.25

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/iPhoneHandle/bin/cgi-bin
In directory lancelot:/tmp/cvs-serv14855/bin/cgi-bin

Modified Files:
	json.pl 
Log Message:
Fixed bug#9021 - Ticket without articles shows an error in server log.

Author: cr

Index: json.pl
===================================================================
RCS file: /home/cvs/iPhoneHandle/bin/cgi-bin/json.pl,v
retrieving revision 1.24
retrieving revision 1.25
diff -2 -u -d -r1.24 -r1.25
--- json.pl	20 Nov 2012 19:16:26 -0000	1.24
+++ json.pl	4 Jan 2013 02:16:26 -0000	1.25
@@ -2,5 +2,5 @@
 # --
 # bin/cgi-bin/json.pl - json handle
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -321,5 +321,5 @@
 
             # -1 response means an error
-            if ( @{$Result}[0] eq -1 ) {
+            if ( defined @{$Result}[0] && @{$Result}[0] eq -1 ) {
                 $ResultProtocol{Result} = 'failed';
 
---------------------------------------------------------------------
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.