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:
nate 2008-04-18 05:29:46 +00:00
parent 953c778f5f
commit 6a6928e084

View file

@ -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;
} }