X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Foembed.php;h=0f3296b254c9a7db2e2efa29f48b8695fd6d7c28;hb=0cd9db9cb7f4c96f597e37590a536eaae123238d;hp=d28a97e322046690eee01300199ceca9891090c4;hpb=fd5d058156185c6c02c1285a794139d07f4d13ce;p=friendica.git diff --git a/include/oembed.php b/include/oembed.php index d28a97e322..0f3296b254 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -108,7 +108,7 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){ $j->embedurl = $embedurl; // If fetching information doesn't work, then improve via internal functions - if (($j->type == "error") OR ($no_rich_type AND ($j->type == "rich"))) { + if (($j->type == "error") || ($no_rich_type && ($j->type == "rich"))) { $data = ParseUrl::getSiteinfoCached($embedurl, true, false); $j->type = $data["type"]; @@ -194,7 +194,7 @@ function oembed_format_object($j){ if (isset($j->author_name)) { $ret.=" (".$j->author_name.")"; } - } elseif (isset($j->provider_name) OR isset($j->author_name)) { + } elseif (isset($j->provider_name) || isset($j->author_name)) { $embedlink = ""; if (isset($j->provider_name)) { $embedlink .= $j->provider_name;