]> git.mxchange.org Git - mailer.git/blobdiff - agb.php
Fixes for extension problems while installing/removing (still double-registration...
[mailer.git] / agb.php
diff --git a/agb.php b/agb.php
index 065941cc7ff753a20c707ce37cbf48270f489178..19947b5efa804cc9ea0ce819634e81eafd71c774 100644 (file)
--- a/agb.php
+++ b/agb.php
 // Load security stuff here
 require('inc/libs/security_functions.php');
 
-// Init "action" and "what"
-$GLOBALS['what'] = '';
-$GLOBALS['action'] = '';
-
 // Set module
 $GLOBALS['module'] = 'agb';
 $GLOBALS['output_mode'] = -1;
@@ -51,16 +47,13 @@ $GLOBALS['output_mode'] = -1;
 require('inc/config-global.php');
 
 // Is the script installed?
-if (isInstalled()) {
-       // Simply redirect... :-)
-       redirectToUrl('modules.php?module=index&what=agb');
-} else {
+if (!isInstalled()) {
        // You have to install first!
        redirectToUrl('install.php');
-}
+} // END - if
 
-// Really all done here... ;-)
-shutdown();
+// Simply redirect... :-)
+redirectToUrl('modules.php?module=index&what=agb');
 
-//
+// [EOF]
 ?>