X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession-functions.php;h=f7d86451ed999498b2694b6fb08edea27a2ee1f6;hb=8720389106820efb6ee1668b0bc8d00d5d034bda;hp=cef1f7a478150bdfa43ceedc7e1ad0e8529e04cc;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/session-functions.php b/inc/session-functions.php index cef1f7a478..f7d86451ed 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,13 +86,13 @@ 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! ;-) + // Default is not found ;-) $value = null; // Is the variable there?