]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-earning.php
Better checks + always return FALSE on abort
[mailer.git] / inc / loader / load-earning.php
index 3a809ce0bd8673e4d4fb69e5eb146ab1bbc228f2..18180aca1ab4493d91df47d0aecd3de88efae270 100644 (file)
 if (!defined('__SECURITY')) {
        die();
 } elseif (isInstallationPhase()) {
-       // Use this code if you don't want to run this cache loader on installation phase
-       return;
+       // Do not run in installation phase
+       return FALSE;
+} elseif (!isExtensionInstalled('earning')) {
+       // Do not cache if not installed!
+       return FALSE;
 }
 
 // Let's start with the admins table...