aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-09 17:35:03 -0700
committergit-marijus <mario@mariovavti.com>2017-08-10 09:47:09 +0200
commitacb8eeb85323a94bed85f3118fe20c1b5c9e2e7f (patch)
tree6f0bee75f22fe338ccf76d6775d645a10442bc9e /include/network.php
parentfa2de77abe724255e28e3d41ec7b864f3ebc7893 (diff)
downloadvolse-hubzilla-acb8eeb85323a94bed85f3118fe20c1b5c9e2e7f.tar.gz
volse-hubzilla-acb8eeb85323a94bed85f3118fe20c1b5c9e2e7f.tar.bz2
volse-hubzilla-acb8eeb85323a94bed85f3118fe20c1b5c9e2e7f.zip
libxml errors
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php
index fe9a9aa2b..5f814ef32 100644
--- a/include/network.php
+++ b/include/network.php
@@ -671,11 +671,12 @@ function parse_xml_string($s,$strict = true) {
libxml_use_internal_errors(true);
$x = @simplexml_load_string($s2);
- if(! $x) {
+ if($x === false) {
logger('libxml: parse: error: ' . $s2, LOGGER_DATA);
- foreach(libxml_get_errors() as $err)
- logger('libxml: parse: ' . $err->code." at ".$err->line.":".$err->column." : ".$err->message, LOGGER_DATA);
-
+ foreach(libxml_get_errors() as $err) {
+ logger('libxml: parse: ' . $err->code . ' at ' . $err->line
+ . ':' . $err->column . ' : ' . $err->message, LOGGER_DATA);
+ }
libxml_clear_errors();
}