]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Network.php
messages.po and and corrected typo in comment
[friendica.git] / src / Util / Network.php
index 508934db2c6eb0ccb89ed799c34eb7f6010932d3..5a06a0056e5065bd890e10c1cc5e9a59af97141c 100644 (file)
@@ -485,11 +485,11 @@ class Network
                                                $get('host') .
                                                ($port ? ":$port" : '');
 
-               return  (strlen($scheme) ? $scheme . ':' : '') .
-                       (strlen($authority) ? '//' . $authority : '') .
+               return  (!empty($scheme) ? $scheme . ':' : '') .
+                       (!empty($authority) ? '//' . $authority : '') .
                        $get('path') .
-                       (strlen($query) ? '?' . $query : '') .
-                       (strlen($fragment) ? '#' . $fragment : '');
+                       (!empty($query) ? '?' . $query : '') .
+                       (!empty($fragment) ? '#' . $fragment : '');
        }
 
        /**