Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing bug where you couldn't set CakeRequest::$base to empty string …
…using config variable `App.base`
  • Loading branch information
ADmad committed Oct 4, 2011
1 parent 042e817 commit dcb704a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Network/CakeRequest.php
Expand Up @@ -236,7 +236,7 @@ protected function _base() {
$config = Configure::read('App');
extract($config);

if (empty($base)) {
if (!isset($base)) {
$base = $this->base;
}
if ($base !== false) {
Expand Down Expand Up @@ -627,7 +627,7 @@ public function accepts($type = null) {
/**
* 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.
*
Expand Down

0 comments on commit dcb704a

Please sign in to comment.