summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-26 14:37:28 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-26 14:37:28 +0200
commit4b322b18f3398e07275b74f615c2bf727a98a3cd (patch)
tree7f270e57f5b5aedf4945a15c1327b607eb2a86f2
parent58c2b10eff196d6e7e4c678a3d7ef13bbc030124 (diff)
Fix an improper usage of empty() in the URI class
-rw-r--r--system/core/URI.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/URI.php b/system/core/URI.php
index 72f293c18..13530bd63 100644
--- a/system/core/URI.php
+++ b/system/core/URI.php
@@ -219,7 +219,7 @@ class CI_URI {
$_GET = array();
}
- if ($uri === '/' OR empty($uri))
+ if ($uri === '/' OR $uri === '')
{
return '/';
}