diff --git a/cake/libs/app.php b/cake/libs/app.php index ce7fb4a05..2e3e608b0 100644 --- a/cake/libs/app.php +++ b/cake/libs/app.php @@ -272,11 +272,10 @@ class App { $path = array_flip(array_flip(array_merge( (array)$paths[$type], self::${$type}, $merge ))); - self::${$type} = array_values($path); } else { $path = array_flip(array_flip(array_merge(self::${$type}, $merge))); - self::${$type} = array_values($path); } + self::${$type} = array_values($path); } }