Minor - Adding file_exists validation

skala
Julio Montoya 13 years ago
parent 92ebab23c2
commit c8a4787cb4
  1. 9
      main/inc/lib/autoload.class.php

@ -490,11 +490,12 @@ class Autoload
$map = &self::map();
if (isset($map[$class_name])) {
$path = $root . $map[$class_name];
require_once $path;
return true;
} else {
return false;
if (file_exists($path) && is_file($path)) {
require_once $path;
return true;
}
}
return false;
}
}

Loading…
Cancel
Save