X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fparse_url.php;h=07f319fdca69e8ab2372b29b1302a81d1c97398c;hb=3fc5c1ad840f98926319478a855dab3686a0ace3;hp=a1bacb0d8f775b5441d8b9052c8c6c4443ced6b6;hpb=2f28c2ebbfd8f66093d7081d40b1d48f65fcff20;p=friendica.git diff --git a/mod/parse_url.php b/mod/parse_url.php index a1bacb0d8f..07f319fdca 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -47,8 +47,8 @@ function parse_url_content(App $a) // Add url scheme if it is missing $arrurl = parse_url($url); - if (!x($arrurl, 'scheme')) { - if (x($arrurl, 'host')) { + if (empty($arrurl['scheme'])) { + if (!empty($arrurl['host'])) { $url = 'http:' . $url; } else { $url = 'http://' . $url;