From 13108abd444f4cb680c90b3eddc42337f6fda629 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sat, 27 Nov 2010 02:27:17 +0000 Subject: [PATCH] Bugfix: If there's only one valid context, this is a scalar, not an arrayref. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1039597 13f79535-47bb-0310-9956-ffa450edef68 --- docs/review_translations.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/review_translations.pl b/docs/review_translations.pl index 4c8467fef7..7b6c061554 100755 --- a/docs/review_translations.pl +++ b/docs/review_translations.pl @@ -69,6 +69,13 @@ sub directive_doc { $eng_xml->{directivesynopsis}->{$d}->{description} . "\n"; print ""; + + # If there's only one context, this is a scalar, not an arrayref. + if ( !ref( $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context}) ) { + $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context} + = [ $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context} ] + } + foreach my $c ( @{ $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context} } ) { print "".$c.""; } -- 2.40.0