diff --git a/include/url.php b/include/url.php index 4dee6c8..d9178f1 100644 --- a/include/url.php +++ b/include/url.php @@ -502,6 +502,10 @@ class Url { // and prepend "http://" function normalize($sTheUrl) { + // return if we have an empty string + if($sTheUrl == "") + return $sTheUrl; + // if we already have "://" in the url // we can leave the url alone if(strpos($sTheUrl, "://") === false)