Use class_exists() with FALSE second argument

This commit is contained in:
Mark Baker
2012-09-06 22:56:56 +01:00
parent 9820b46649
commit f87ca1419d
6 changed files with 40 additions and 19 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class PHPExcel_Autoloader
* @param string $pClassName Name of the object to load
*/
public static function Load($pClassName){
if ((class_exists($pClassName)) || (strpos($pClassName, 'PHPExcel') !== 0)) {
if ((class_exists($pClassName,FALSE)) || (strpos($pClassName, 'PHPExcel') !== 0)) {
// Either already loaded, or not a PHPExcel class request
return FALSE;
}