diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php index 1743df0..8981084 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullModel.php @@ -387,9 +387,16 @@ class PullModel extends AbstractModel return; } - require_once $path . '/libraries/vendor/composer/autoload_static.php'; + // Check if the class is already defined $autoloadClass = '\Composer\Autoload\ComposerStaticInit' . $match[1]; + if (class_exists($autoloadClass)) + { + return; + } + + require_once $path . '/libraries/vendor/composer/autoload_static.php'; + // Get all the files $files = $autoloadClass::$files;