Browse Source

Add missing break statements in include/conversation

- Remove bad variable initialization in format_like()
pull/6483/head
Hypolite Petovan 2 years ago
parent
commit
9b27d049dc
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      include/conversation.php

+ 2
- 3
include/conversation.php View 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) {


Loading…
Cancel
Save