From: Rich Bowen Date: Sat, 27 Nov 2010 02:27:17 +0000 (+0000) Subject: Bugfix: If there's only one valid context, this is a scalar, not an arrayref. X-Git-Tag: 2.3.10~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13108abd444f4cb680c90b3eddc42337f6fda629;p=apache 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 --- 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.""; }