]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / mod / parse_url.php
index a1bacb0d8f775b5441d8b9052c8c6c4443ced6b6..07f319fdca69e8ab2372b29b1302a81d1c97398c 100644 (file)
@@ -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;