[otrs-cvs] Survey/Kernel/Modules PublicSurvey.pm, 1.25.2.2, 1.25.2.3

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

Modified Files:
      Tag: rel-2_0
	PublicSurvey.pm 
Log Message:
Fixed some uninitialized values.

Author: jh

Index: PublicSurvey.pm
===================================================================
RCS file: /home/cvs/Survey/Kernel/Modules/PublicSurvey.pm,v
retrieving revision 1.25.2.2
retrieving revision 1.25.2.3
diff -2 -u -d -r1.25.2.2 -r1.25.2.3
--- PublicSurvey.pm	20 Nov 2012 13:54:29 -0000	1.25.2.2
+++ PublicSurvey.pm	21 Nov 2012 14:54:33 -0000	1.25.2.3
@@ -522,8 +522,14 @@
 
                 my %Selected = (
-                    YesSelected => ( $Answers{ $Question->{QuestionID} } eq 'Yes' )
+                    YesSelected => (
+                        defined $Answers{ $Question->{QuestionID} }
+                            && $Answers{ $Question->{QuestionID} } eq 'Yes'
+                        )
                     ? 'checked="checked"'
                     : '',
-                    NoSelected => ( $Answers{ $Question->{QuestionID} } eq 'No' )
+                    NoSelected => (
+                        defined $Answers{ $Question->{QuestionID} }
+                            && $Answers{ $Question->{QuestionID} } eq 'No'
+                        )
                     ? 'checked="checked"'
                     : '',
@@ -559,5 +565,9 @@
 
                     my $Selected = '';
-                    if ( $Answers{ $Question->{QuestionID} } eq $Answer->{AnswerID} ) {
+                    if (
+                        defined $Answers{ $Question->{QuestionID} }
+                        && $Answers{ $Question->{QuestionID} } eq $Answer->{AnswerID}
+                        )
+                    {
                         $Selected = 'checked="checked"';
                     }
---------------------------------------------------------------------
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.