diff --git a/cake/basics.php b/cake/basics.php index 509a1cee5..0ac73790e 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -549,7 +549,7 @@ if (!function_exists('clone')) { } if ($key == 'SCRIPT_NAME') { - if (env('CGI_MODE') && isset($_ENV['SCRIPT_URL']) { + if (env('CGI_MODE') && isset($_ENV['SCRIPT_URL'])) { $key = 'SCRIPT_URL'; } }