From b7b9bb1d554e6814ca54679ef8e2d9560b87b36b Mon Sep 17 00:00:00 2001 From: phpnut Date: Fri, 23 Nov 2007 01:17:25 +0000 Subject: [PATCH] "Correcting Configure::listObjects()" git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6060 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/configure.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 779a1dc29..79234a89f 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -150,7 +150,8 @@ class Configure extends Object { $search = array_merge(array(APP), $_this->corePaths($type)); foreach ($search as $delete) { - if (in_array($delete, $path)) { + + if (is_array($path) && in_array($delete, $path)) { $remove = array_flip($path); unset($remove[$delete]); $path = array_flip($remove); @@ -446,6 +447,7 @@ class Configure extends Object { } if (is_dir($path . DS . 'cake')) { $paths['cake'][] = $path . DS . 'cake'; + $paths['class'][] = $path . DS . 'cake'; } } Cache::write('core_paths', array_filter($paths), '_cake_core_');