From 38c5d6009942a5585598b53c150f7ffd7a29a61b Mon Sep 17 00:00:00 2001 From: ebullient Date: Sat, 4 Jan 2003 05:26:52 +0000 Subject: [PATCH] Thanks shiruken! needed single quotes around switch constants git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4375 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/global.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/functions/global.php b/functions/global.php index 1286b980..38f3be89 100644 --- a/functions/global.php +++ b/functions/global.php @@ -184,36 +184,36 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) { /* we want the default case to be first here, so that if a valid value isn't specified, all three arrays will be searched. */ - default: - case SQ_INORDER: - case SQ_SESSION: + default: + case 'SQ_INORDER': + case 'SQ_SESSION': if( isset($_SESSION[$name]) ) { $value = $_SESSION[$name]; return TRUE; } elseif ( $search == SQ_SESSION ) { break; } - case SQ_POST: + case 'SQ_POST': if( isset($_POST[$name]) ) { $value = $_POST[$name]; return TRUE; } elseif ( $search == SQ_POST ) { break; } - case SQ_GET: + case 'SQ_GET': if ( isset($_GET[$name]) ) { $value = $_GET[$name]; return TRUE; } - /* NO IF HERE. FOR DEFAULT CASE, EXIT after GET */ + /* NO IF HERE. FOR SQ_INORDER CASE, EXIT after GET */ break; - case SQ_COOKIE: + case 'SQ_COOKIE': if ( isset($_COOKIE[$name]) ) { $value = $_COOKIE[$name]; return TRUE; } break; - case SQ_SERVER: + case 'SQ_SERVER': if ( isset($_SERVER[$name]) ) { $value = $_SERVER[$name]; return TRUE; -- 2.25.1