From 9885aa8e0255d0d8998abcc6d8cf4f0b66b4c36f Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 8 Jun 2016 12:06:07 +0200 Subject: [PATCH] Fix proposition for #1242 The Ampache-XML API was not returning a valid XML document in case of failed passphrase validation. --- lib/class/xml_data.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class/xml_data.class.php b/lib/class/xml_data.class.php index dcbc82de..723b108e 100644 --- a/lib/class/xml_data.class.php +++ b/lib/class/xml_data.class.php @@ -106,7 +106,7 @@ class XML_Data public static function error($code,$string) { $string = "\t"; - self::output_xml($string); + return self::output_xml($string); } // error /**