Don't try to autoload file when checking if a class exists

This commit is contained in:
KodeStar 2022-04-12 11:48:03 +01:00
parent 758c174141
commit 3117b9c483
2 changed files with 3 additions and 3 deletions

View file

@ -169,7 +169,7 @@ class Item extends Model
public static function isEnhanced($class)
{
if (!class_exists($class) || $class === null || $class === 'null') {
if (!class_exists($class, false) || $class === null || $class === 'null') {
return false;
}
$app = new $class;
@ -179,7 +179,7 @@ class Item extends Model
public static function isSearchProvider($class)
{
if (!class_exists($class) || $class === null || $class === 'null') {
if (!class_exists($class, false) || $class === null || $class === 'null') {
return false;
}
$app = new $class;

File diff suppressed because one or more lines are too long