Browse Source

Fixing bug where you couldn't set CakeRequest::$base to empty string using config variable `App.base`

ADmad 14 years ago
parent
commit
dcb704a12b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Cake/Network/CakeRequest.php

+ 2 - 2
lib/Cake/Network/CakeRequest.php

@@ -236,7 +236,7 @@ class CakeRequest implements ArrayAccess {
 		$config = Configure::read('App');
 		extract($config);
 
-		if (empty($base)) {
+		if (!isset($base)) {
 			$base = $this->base;
 		}
 		if ($base !== false) {
@@ -627,7 +627,7 @@ class CakeRequest implements ArrayAccess {
 /**
  * Parse the HTTP_ACCEPT header and return a sorted array with content types
  * as the keys, and pref values as the values.
- * 
+ *
  * Generally you want to use CakeRequest::accept() to get a simple list
  * of the accepted content types.
  *