mirror of
https://github.com/friendica/friendica
synced 2025-04-23 16:30:12 +00:00
Warnings fixed
This commit is contained in:
parent
c25c3b5981
commit
3e797547a3
17 changed files with 55 additions and 45 deletions
|
@ -571,9 +571,9 @@ class BBCode extends BaseObject
|
|||
$return = sprintf('<div class="type-%s">', $data["type"]);
|
||||
}
|
||||
|
||||
if ($data["image"] != "") {
|
||||
if (!empty($data["image"])) {
|
||||
$return .= sprintf('<a href="%s" target="_blank"><img src="%s" alt="" title="%s" class="attachment-image" /></a><br />', $data["url"], self::proxyUrl($data["image"], $simplehtml), $data["title"]);
|
||||
} elseif ($data["preview"] != "") {
|
||||
} elseif (!empty($data["preview"])) {
|
||||
$return .= sprintf('<a href="%s" target="_blank"><img src="%s" alt="" title="%s" class="attachment-preview" /></a><br />', $data["url"], self::proxyUrl($data["preview"], $simplehtml), $data["title"]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue