diff --git a/lib/Cake/Console/ShellDispatcher.php b/lib/Cake/Console/ShellDispatcher.php index 2238257b2..af3304c9a 100644 --- a/lib/Cake/Console/ShellDispatcher.php +++ b/lib/Cake/Console/ShellDispatcher.php @@ -292,7 +292,7 @@ class ShellDispatcher { $params = array_merge($defaults, array_intersect_key($this->params, $defaults)); $isWin = false; foreach ($defaults as $default => $value) { - if (strpos($params[$default], '\\') !== false) { + if (!is_null($params[$default]) && strpos($params[$default], '\\') !== false) { $isWin = true; break; }