]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-logout.php
Fixed also usage of previously renamed fields as they must be the same
[mailer.git] / inc / modules / member / what-logout.php
index 7bc1b6cd85b970ba8a84e6443556ed0170467b20..444063102b52d84327a0bbbf56aa24cc24c1bb79 100644 (file)
@@ -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