summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonatas Miguel <jonatas.df.miguel@gmail.com>2012-08-06 16:47:24 +0200
committerJonatas Miguel <jonatas.df.miguel@gmail.com>2012-08-06 16:47:24 +0200
commit3b45cf62bec6684f35207a1bfb2193f1adc9cd2b (patch)
tree4144e94032f5c4892c0c1fbd5f133ce7588cc109
parentc0d98b296186e6206dfa88476199559e630d06d0 (diff)
Fixed a bug when detecting if the user used a callback.
-rw-r--r--system/core/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Router.php b/system/core/Router.php
index a5d01b1ee..d6788c314 100644
--- a/system/core/Router.php
+++ b/system/core/Router.php
@@ -374,7 +374,7 @@ class CI_Router {
if (preg_match('#^'.$key.'$#', $uri, $matches))
{
// Are we using a callback?
- $callable = is_callable($val);
+ $callable = ! is_string($val) && is_callable($val);
// Are we using callbacks to process back-references?
if($callable){