Skip to content

Commit 4e7f7a0

Browse files
committed
Make sure autoload file exists before loading it
1 parent f334d6c commit 4e7f7a0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ps_googleanalytics.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
exit;
2222
}
2323

24-
require_once __DIR__ . '/vendor/autoload.php';
24+
$autoloadPath = __DIR__ . '/vendor/autoload.php';
25+
if (file_exists($autoloadPath)) {
26+
require_once $autoloadPath;
27+
}
2528

2629
class Ps_Googleanalytics extends Module
2730
{

0 commit comments

Comments
 (0)