]> git.mxchange.org Git - friendica.git/commitdiff
1 Bugfix (missing $ character) and avoid some notices
authorTobias Hößl <tobias@hoessl.eu>
Sun, 26 Feb 2012 20:41:41 +0000 (20:41 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Sun, 26 Feb 2012 20:41:41 +0000 (20:41 +0000)
include/conversation.php

index 3d13a1179882d6c269079c981e3adc62d47c6a88..53369cf20f3ae1289fe75eeb47a6ed3e448bdc6c 100755 (executable)
@@ -232,7 +232,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
 
        $alike = array();
        $dlike = array();
-       
+       $o = "";
        
        // array with html for each thread (parent+comments)
        $threads = array();
@@ -436,7 +436,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
                                }
                                else {
                                        // prevent private email from leaking into public conversation
-                                       if((! $toplevelpost) && (! toplevelprivate) && ($item['private']) && ($profile_owner != local_user()))
+                                       if((! $toplevelpost) && (! $toplevelprivate) && ($item['private']) && ($profile_owner != local_user()))
                                                continue;
                                        $comments_seen ++;
                                }       
@@ -641,7 +641,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
                                $body = prepare_body($item,true);
 
                                $tmp_item = replace_macros($template,array(
-                                       '$type' => implode("",array_slice(split("/",$item['verb']),-1)),
+                                       '$type' => implode("",array_slice(explode("/",$item['verb']),-1)),
                                        '$tags' => $tags,
                                        '$body' => template_escape($body),
                                        '$id' => $item['item_id'],