commit | 3b45cf62bec6684f35207a1bfb2193f1adc9cd2b | [log] [tgz] |
---|---|---|
author | Jonatas Miguel <jonatas.df.miguel@gmail.com> | Mon Aug 06 15:47:24 2012 +0100 |
committer | Jonatas Miguel <jonatas.df.miguel@gmail.com> | Mon Aug 06 15:47:24 2012 +0100 |
tree | 4144e94032f5c4892c0c1fbd5f133ce7588cc109 | |
parent | c0d98b296186e6206dfa88476199559e630d06d0 [diff] |
Fixed a bug when detecting if the user used a callback.
diff --git a/system/core/Router.php b/system/core/Router.php index a5d01b1..d6788c3 100644 --- a/system/core/Router.php +++ b/system/core/Router.php
@@ -374,7 +374,7 @@ 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){