summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-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){