mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Ficing a couple of notices when using a mocked CakeRequest
This commit is contained in:
parent
633f1dc1e5
commit
e8c73170ba
1 changed files with 2 additions and 2 deletions
|
@ -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')));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue