From: pdontthink Date: Thu, 14 Apr 2005 10:52:50 +0000 (+0000) Subject: Reverting to Erin's original design; sqgetGlobalVar() should not touch vars that... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=511f5c332f6058367c8d30c84c61c70f80288f67;p=squirrelmail.git Reverting to Erin's original design; sqgetGlobalVar() should not touch vars that are not found git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9265 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/global.php b/functions/global.php index 634d9d38..35b9fcc0 100644 --- a/functions/global.php +++ b/functions/global.php @@ -185,9 +185,6 @@ define('SQ_FORM',6); * sqgetGlobalVar('username',$username,SQ_SESSION); * -- no quotes around last param! * - * WARNING: Since 1.4.5 and 1.5.1 function nulls $value, - * if variable is not available. - * * @param string name the name of the var to search * @param mixed value the variable to return * @param int search constant defining where to look @@ -240,8 +237,7 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) { } break; } - /* Nothing found, reset $value and return FALSE */ - $value = null; + /* Nothing found, return FALSE */ return FALSE; }