X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession-functions.php;h=96af5101d609e57a79ae1953e58f2bf7d02cefd4;hb=9d83303b8272d7ea91b0e661609e48894262a432;hp=7bfb18c901742d31e4ddaf75580f42f3581bfdb3;hpb=c4823d28fd0bd22250b16d73f2034f36fc54abda;p=mailer.git diff --git a/inc/session-functions.php b/inc/session-functions.php index 7bfb18c901..96af5101d6 100644 --- a/inc/session-functions.php +++ b/inc/session-functions.php @@ -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; + $value = NULL; // Is the variable there? if (isSessionVariableSet($var)) {