]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-logout.php
Renamed templates + added some filters for mail order
[mailer.git] / inc / modules / member / what-logout.php
index 7bc1b6cd85b970ba8a84e6443556ed0170467b20..8faf06671e74d57e85a39adc4be8fcaf046837c9 100644 (file)
@@ -17,7 +17,7 @@
  * @TODO Rewrite the code to a filter                                   *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -46,8 +46,10 @@ if (!defined('__SECURITY')) {
 // Base URL for redirection (both cases)
 $url = 'modules.php?module=index&code=';
 
-if (destroyMemberSession()) {
+// Do the logout but keep session if current user is also admin
+if (destroyMemberSession(!isAdmin())) {
        // Remove theme cookie as well
+       // @TODO Move this in a filter, e.g. member_logout
        if (isExtensionActive('theme')) {
                setMailerTheme('');
        } // END - if