From abe96155b42f0f824d05d08126d0ced0d3c5ab38 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 27 Oct 2011 01:54:52 -0700 Subject: hmmm - why won't poco xml work --- include/text.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index e0f38a3a0..8ada179dc 100644 --- a/include/text.php +++ b/include/text.php @@ -1052,4 +1052,13 @@ function html2bb_video($s) { '[vimeo]$2[/vimeo]', $s); return $s; -} \ No newline at end of file +} + +/** + * apply xmlify() to all values of array $val, recursively + */ +function array_xmlify($val){ + if (is_bool($val)) return $val?"true":"false"; + if (is_array($val)) return array_map('array_xmlify', $val); + return xmlify((string) $val); +} -- cgit v1.2.3