diff --git a/system/HTTP/URI.php b/system/HTTP/URI.php
index <HASH>..<HASH> 100644
--- a/system/HTTP/URI.php
+++ b/system/HTTP/URI.php
@@ -600,7 +600,7 @@ class URI
 		$basePath = rtrim($baseUri->getPath(), '/') . '/';
 		$path     = $this->getPath();
 
-		if (! empty($basePath) && $basePath !== '/' && strpos($path, $basePath) !== 0)
+              if ($basePath !== '/' && strpos($path, $basePath) !== 0)
 		{
 			$path = $basePath . $path;
 		}
Update system/HTTP/URI.php