commit | e2b0754c4ea3fe227bc80a546f4d5cbd88a1e24e | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Thu Nov 08 12:37:40 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Thu Nov 08 12:37:40 2012 +0200 |
tree | bdbbbe0c63b0c1a52118584a9286bb898597ce5e | |
parent | da5562a4bd87ad8ea827298dbe60e850225cfe34 [diff] [blame] |
Another router fix for the dumbest usage of callbacks ever
diff --git a/system/core/Router.php b/system/core/Router.php index 30bf396..01f44bc 100644 --- a/system/core/Router.php +++ b/system/core/Router.php
@@ -327,7 +327,7 @@ $uri = implode('/', $this->uri->segments); // Is there a literal match? If so we're done - if (isset($this->routes[$uri])) + if (isset($this->routes[$uri]) && is_string($this->routes[$uri])) { return $this->_set_request(explode('/', $this->routes[$uri])); }