]> git.mxchange.org Git - friendica.git/commitdiff
Add missing break statements in include/conversation
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 16:38:54 +0000 (11:38 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 16:38:54 +0000 (11:38 -0500)
- Remove bad variable initialization in format_like()

include/conversation.php

index 682bc1455509fb73f2e71eb8d59e74b389bec002..d7e3d54808ed77640c15662a9bc28ae4de40b2b6 100644 (file)
@@ -210,8 +210,8 @@ function localize_item(&$item)
                foreach ($links->link as $l) {
                        $atts = $l->attributes();
                        switch ($atts['rel']) {
-                               case "alternate": $Blink = $atts['href'];
-                               case "photo": $Bphoto = $atts['href'];
+                               case "alternate": $Blink = $atts['href']; break;
+                               case "photo": $Bphoto = $atts['href']; break;
                        }
                }
 
@@ -1044,7 +1044,6 @@ function format_like($cnt, array $arr, $type, $id) {
                }
        }
 
-       $phrase = '';
        if ($cnt > 1) {
                $total = count($arr);
                if ($total < MAX_LIKERS) {