Don't try to include config/autoload.php if it doesn't exist
Related: #3497
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 6371ca3..20b26d8 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -1232,7 +1232,11 @@
*/
protected function _ci_autoloader()
{
- include(APPPATH.'config/autoload.php');
+ if (file_exists(APPPATH.'config/config.php'))
+ {
+ include(APPPATH.'config/autoload.php');
+ }
+
if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/autoload.php'))
{
include(APPPATH.'config/'.ENVIRONMENT.'/autoload.php');