Ficing a couple of notices when using a mocked CakeRequest

This commit is contained in:
José Lorenzo Rodríguez 2010-12-18 22:27:28 -04:30
parent 633f1dc1e5
commit e8c73170ba

View file

@ -273,7 +273,7 @@ class CakeRequest implements ArrayAccess {
$config = Configure::read('App');
extract($config);
if (!$base) {
if (empty($base)) {
$base = $this->base;
}
@ -281,7 +281,7 @@ class CakeRequest implements ArrayAccess {
$this->webroot = $base . '/';
return $base;
}
if (!$baseUrl) {
if (empty($baseUrl)) {
$replace = array('<', '>', '*', '\'', '"');
$base = str_replace($replace, '', dirname(env('PHP_SELF')));