X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbbcode.php;h=0c4e12c9ad49e6e9fc44faf7fa68656f25682a67;hb=0cd9db9cb7f4c96f597e37590a536eaae123238d;hp=9a43cdb305e140222650bcfdd9dd97f307da934b;hpb=bc724f2b68004fc90729adba150360ab7456747d;p=friendica.git
diff --git a/include/bbcode.php b/include/bbcode.php
index 9a43cdb305..0c4e12c9ad 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -49,14 +49,14 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
$data["title"] = str_replace(array("http://", "https://"), "", $data["title"]);
}
- if (((strpos($data["text"], "[img=") !== false) OR (strpos($data["text"], "[img]") !== false)) AND ($data["image"] != "")) {
+ if (((strpos($data["text"], "[img=") !== false) || (strpos($data["text"], "[img]") !== false)) && ($data["image"] != "")) {
$data["preview"] = $data["image"];
$data["image"] = "";
}
if ($simplehtml == 7) {
$text = style_url_for_mastodon($data["url"]);
- } elseif (($simplehtml != 4) AND ($simplehtml != 0)) {
+ } elseif (($simplehtml != 4) && ($simplehtml != 0)) {
$text = sprintf('%s
', $data["url"], $data["title"]);
} else {
$text = sprintf('', $data["type"]);
@@ -71,13 +71,13 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
if (strstr(strtolower($oembed), "