From: kink Date: Wed, 2 Feb 2005 21:56:43 +0000 (+0000) Subject: in sqgetGlobalVar, reset $value if it is not found. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fc380412e4affcb0ff647acbf72b0baa28699fde;p=squirrelmail.git in sqgetGlobalVar, reset $value if it is not found. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8754 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/global.php b/functions/global.php index 7b47de74..898d8369 100644 --- a/functions/global.php +++ b/functions/global.php @@ -237,6 +237,8 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) { } break; } + /* Nothing found, reset $value and return FALSE */ + $value = null; return FALSE; } @@ -287,4 +289,4 @@ function sqsession_is_active() { } // vim: et ts=4 -?> \ No newline at end of file +?>