mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding array index fix for loading vendor files in console
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6689 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
953c778f5f
commit
6a6928e084
1 changed files with 2 additions and 1 deletions
|
@ -269,8 +269,9 @@ class ShellDispatcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$vendorPaths = Configure::read('vendorPaths');
|
$vendorPaths = array_values(Configure::read('vendorPaths'));
|
||||||
$count = count($vendorPaths);
|
$count = count($vendorPaths);
|
||||||
|
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i = 0; $i < $count; $i++) {
|
||||||
$paths[] = rtrim($vendorPaths[$i], DS) . DS . 'shells' . DS;
|
$paths[] = rtrim($vendorPaths[$i], DS) . DS . 'shells' . DS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue