From fc380412e4affcb0ff647acbf72b0baa28699fde Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 2 Feb 2005 21:56:43 +0000 Subject: [PATCH] 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 --- functions/global.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +?> -- 2.25.1