]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-earning.php
Swapped all
[mailer.git] / inc / loader / load-earning.php
index fabe21e6580ba8301504772fd05774f248f172c2..18180aca1ab4493d91df47d0aecd3de88efae270 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 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...