From 0ba9704c21d06ee8f625d1dbc162f3b9e4495850 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Fri, 13 Sep 2013 12:17:24 +0200 Subject: [PATCH] // Fix class index error --- classes/Autoload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Autoload.php b/classes/Autoload.php index 7f20b0cf9..dc1966d8e 100644 --- a/classes/Autoload.php +++ b/classes/Autoload.php @@ -81,7 +81,8 @@ class Autoload return; // 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']))) $this->generateIndex();