Author: Christopher Odenbach <odenbach@uni-paderborn.de>
Last-Update: 2013-02-05
Bug-Debian: https://bugs.debian.org/699822
Description: Enable working with only one datasource

--- a/drraw.cgi
+++ b/drraw.cgi
@@ -4518,7 +4518,7 @@ sub DSNew
         $xml = new XML::Simple;
         $xml_file = $rrdfile;
         if ( $xml_file =~ s/rrd$/xml/g ) {
-            $data_xml = $xml->XMLin($xml_file);
+            $data_xml = $xml->XMLin($xml_file, ForceArray => 1);
             foreach $ds_xml ( @{$data_xml->{DATASOURCE}} ) {
                 if ( $DSname == $ds_xml->{DS} ) {
                     $DSname = $ds_xml->{NAME};
