Skip to content

Commit bbf64d4

Browse files
author
Pablo Borowicz
authored
Merge pull request #106 from PierreRambaud/fix/autoload
2 parents 68c5093 + 4e7f7a0 commit bbf64d4

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)