in sqgetGlobalVar, reset $value if it is not found.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Feb 2005 21:56:43 +0000 (21:56 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Feb 2005 21:56:43 +0000 (21:56 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8754 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index 7b47de742fe23d99015314b5675a4d621e926bfe..898d8369882582625503df531d0da29191a806ae 100644 (file)
@@ -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
+?>