mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding $pos = 0; to avoid php notice.
This commit is contained in:
parent
3907893263
commit
f9204ebe7c
1 changed files with 4 additions and 3 deletions
|
@ -613,6 +613,7 @@ class Dispatcher extends Object {
|
|||
$ext = array_pop(explode('.', $url));
|
||||
|
||||
if (isset($Media->mimeType[$ext])) {
|
||||
$pos = 0;
|
||||
$parts = explode('/', $url);
|
||||
if ($parts[0] === 'css' || $parts[0] === 'js' || $parts[0] === 'img') {
|
||||
$pos = 0;
|
||||
|
|
Loading…
Reference in a new issue