aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-26 18:45:47 -0700
committerredmatrix <git@macgirvin.com>2016-05-26 18:45:47 -0700
commit61304d80d23bf624d9ca13319d2c6c09fdd0d70e (patch)
tree5cdbbe3a20ebcf896f92daa4643a4768733ce072 /include/text.php
parent1bce285eca9bf53044f3949a55fc434db2671b3a (diff)
downloadvolse-hubzilla-61304d80d23bf624d9ca13319d2c6c09fdd0d70e.tar.gz
volse-hubzilla-61304d80d23bf624d9ca13319d2c6c09fdd0d70e.tar.bz2
volse-hubzilla-61304d80d23bf624d9ca13319d2c6c09fdd0d70e.zip
track down some issues from the application logs
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index a7cc4c9bd..375a89d3f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -322,6 +322,15 @@ function autoname($len) {
function xmlify($str) {
$buffer = '';
+ if(is_array($str)) {
+
+ // allow to fall through so we ge a PHP error, as the log statement will
+ // probably get lost in the noise unless we're specifically looking for it.
+
+ btlogger('xmlify called with array: ' . print_r($str,true), LOGGER_NORMAL, LOG_WARNING);
+ }
+
+
$len = mb_strlen($str);
for($x = 0; $x < $len; $x ++) {
$char = mb_substr($str,$x,1);