added curely braces + TODO for maybe avoiding multi-lined if() blocks as it confuses #3254
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
@@ -2159,8 +2159,8 @@ class dfrn {
|
||||
$title = $attributes->textContent;
|
||||
}
|
||||
}
|
||||
if (($rel != "") AND ($href != ""))
|
||||
switch($rel) {
|
||||
if (($rel != "") AND ($href != "")) {
|
||||
switch ($rel) {
|
||||
case "alternate":
|
||||
$item["plink"] = $href;
|
||||
break;
|
||||
@@ -2170,9 +2170,10 @@ class dfrn {
|
||||
$item["attach"] .= ",";
|
||||
}
|
||||
|
||||
$item["attach"] .= '[attach]href="'.$href.'" length="'.$length.'" type="'.$type.'" title="'.$title.'"[/attach]';
|
||||
$item["attach"] .= '[attach]href="' . $href . '" length="' . $length . '" type="' . $type . '" title="' . $title . '"[/attach]';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user