// Fix class index error
This commit is contained in:
1 parent
2bf17241bd
commit
0ba9704c21
1 file changed
+2
-1
@@ -81,7 +81,8 @@ class Autoload
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// regenerate the class index if the requested file doesn't exists
|
// regenerate the class index if the requested file doesn't exists
|
||||||
if ((isset($this->index[$classname]) && $this->index[$classname] && !is_file($this->root_dir.$this->index[$classname]))
|
if (!isset($this->index[$classname])
|
||||||
|
|| ($this->index[$classname] && !is_file($this->root_dir.$this->index[$classname]))
|
||||||
|| (isset($this->index[$classname.'Core']) && $this->index[$classname.'Core'] && !is_file($this->root_dir.$this->index[$classname.'Core'])))
|
|| (isset($this->index[$classname.'Core']) && $this->index[$classname.'Core'] && !is_file($this->root_dir.$this->index[$classname.'Core'])))
|
||||||
$this->generateIndex();
|
$this->generateIndex();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user