diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/photos.php | 1 | ||||
-rw-r--r-- | include/text.php | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/photos.php b/include/photos.php index d4ddb8909..885d2f958 100644 --- a/include/photos.php +++ b/include/photos.php @@ -219,6 +219,7 @@ function photo_upload($channel, $observer, $args) { $ret['success'] = true; $ret['body'] = $arr['body']; + $ret['resource_id'] = $photo_hash; $ret['photoitem_id'] = $item_id; call_hooks('photo_post_end',$ret); diff --git a/include/text.php b/include/text.php index 18c5aeaf1..996f769dd 100644 --- a/include/text.php +++ b/include/text.php @@ -177,8 +177,9 @@ if(! function_exists('xmlify')) { function xmlify($str) { $buffer = ''; - for($x = 0; $x < mb_strlen($str); $x ++) { - $char = $str[$x]; + $len = mb_strlen($str); + for($x = 0; $x < $len; $x ++) { + $char = mb_substr($str,$x,1); switch( $char ) { |