Browse Source

fix bug in url::to.

Taylor Otwell 12 years ago
parent
commit
98ea0c0e6f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      laravel/url.php

+ 1 - 2
laravel/url.php

@@ -27,8 +27,7 @@ class URL {
 		{
 			$base = $url;
 		}
-
-		if (isset($_SERVER['HTTP_HOST']))
+		elseif (isset($_SERVER['HTTP_HOST']))
 		{
 			$protocol = (Request::secure()) ? 'https://' : 'http://';