X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession-functions.php;h=95d26340ba0295bcf7cb22d5c3a75bb6263e0804;hb=262c3e87d0a80ec8a4435b2564d4b666fd329bf6;hp=ca8a38fff1bfab6dccc20db7ac897deb3e5b4f10;hpb=f0957663700eda99144d6d1eed2d8b225225cf11;p=mailer.git diff --git a/inc/session-functions.php b/inc/session-functions.php index ca8a38fff1..95d26340ba 100644 --- a/inc/session-functions.php +++ b/inc/session-functions.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -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)) {