From b6dec53ec1d0db2d9c21c6d076ee76ebf161c32e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 11 Aug 2016 08:44:03 +0200 Subject: [PATCH] Bugfix: A parameter in xml::from_array was missing. --- mod/ping.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/ping.php b/mod/ping.php index 4f939eaa0c..8c28e74744 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -8,12 +8,14 @@ require_once('include/xml.php'); function ping_init(&$a) { + $xmlhead = "<"."?xml version='1.0' encoding='UTF-8' ?".">"; + if (local_user()){ // Different login session than the page that is calling us. if (intval($_GET['uid']) && intval($_GET['uid']) != local_user()) { $data = array("invalid" => 1); header("Content-type: text/xml"); - echo xml::from_array(array("result" => $data)); + echo xml::from_array(array("result" => $data), $xml); killme(); } @@ -338,7 +340,7 @@ function ping_init(&$a) { $data["sysmsgs"] = $sysmsg; header("Content-type: text/xml"); - echo xml::from_array(array("result" => $data)); + echo xml::from_array(array("result" => $data), $xml); killme(); } -- 2.39.5