]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-points_data.php
Better checks + always return FALSE on abort
[mailer.git] / inc / loader / load-points_data.php
index 90fa77f52e29a4d4a67394886e0165b48115c903..9d496e5ad17795c9476b7933673cab742565ac7b 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 (!isExtensionInstalledAndNewer('sql_patches', '0.8.0')) {
+       // Is not installed or recent enough
+       return FALSE;
 }
 
 // Let's start with the admins table...