]> git.mxchange.org Git - mailer.git/blobdiff - inc/session-functions.php
Handling of cache 'earning' added
[mailer.git] / inc / session-functions.php
index cef1f7a478150bdfa43ceedc7e1ad0e8529e04cc..96af5101d609e57a79ae1953e58f2bf7d02cefd4 100644 (file)
@@ -46,7 +46,8 @@ function setSession ($var, $value) {
        if (isCssOutputMode()) return true;
 
        // Trim value and session variable
-       $var = trim(secureString($var)); $value = trim($value);
+       $var   = trim(secureString($var));
+       $value = trim($value);
 
        // Is the session variable set?
        if (('' . $value . '' == '') && (isSessionVariableSet($var))) {
@@ -85,14 +86,14 @@ function setSession ($var, $value) {
 
 // Check wether a session variable is set
 function isSessionVariableSet ($var) {
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "var={$var}");
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'var=' . $var . ' set in session');
        return (isset($GLOBALS['_SESSION'][$var]));
 }
 
 // Returns wether the value of the session variable or NULL if not set
 function getSession ($var) {
-       // Default is not found! ;-)
-       $value = null;
+       // Default is not found ;-)
+       $value = NULL;
 
        // Is the variable there?
        if (isSessionVariableSet($var)) {