]> git.mxchange.org Git - mailer.git/blobdiff - inc/session-functions.php
Mailer project rwritten:
[mailer.git] / inc / session-functions.php
index ebee5cf6f13ce77965ae8a9b48b57d943bf2ff9d..a4a80d1f3b18e19b0c47e0e78706add7c7e3a02a 100644 (file)
@@ -66,7 +66,7 @@ function setSession ($var, $value) {
        } elseif (('' . $value . '' != '') && (!isSessionVariableSet($var))) {
                // Set session
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'SET:' . $var . '=' . $value);
-               $GLOBALS['_SESSION'][$var] =  $value;
+               $GLOBALS['_SESSION'][$var] = $value;
                if (isPhpVersionEqualNewer('5.3.0')) {
                        // session_unregister() is deprecated as of 5.3.0
                        return TRUE;
@@ -133,7 +133,7 @@ function destroyAdminSession ($destroy = FALSE) {
        // Kill maybe existing session variables including array elements
        setAdminId(0);
        setAdminMd5('');
-       setAdminLast('');
+       setAdminLast(0);
 
        // Set cache to FALSE
        $GLOBALS['isAdmin'] = FALSE;