aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-09 17:35:03 -0700
committerzotlabs <mike@macgirvin.com>2017-08-09 17:35:03 -0700
commit6531cbd1d286738acb9448b141bf4d7d5f97ccf3 (patch)
tree6b795ce45ce149a0bbabba43e76783952907ae77 /include
parent8eb6dafe312746ea85ccdd0544b17241b2f95a9c (diff)
downloadvolse-hubzilla-6531cbd1d286738acb9448b141bf4d7d5f97ccf3.tar.gz
volse-hubzilla-6531cbd1d286738acb9448b141bf4d7d5f97ccf3.tar.bz2
volse-hubzilla-6531cbd1d286738acb9448b141bf4d7d5f97ccf3.zip
libxml errors
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php2
-rw-r--r--include/network.php9
2 files changed, 6 insertions, 5 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 13ae571d6..f15077e76 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -538,7 +538,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
}
elseif ($mode === 'photos') {
- $profile_onwer = App::$profile['profile_uid'];
+ $profile_owner = App::$profile['profile_uid'];
$page_writeable = ($profile_owner == local_channel());
$live_update_div = '<div id="live-photos"></div>' . "\r\n";
// for photos we've already formatted the top-level item (the photo)
diff --git a/include/network.php b/include/network.php
index fa49e5765..cd6e980ff 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();
}