From: Michael J. Rubinsky Date: Wed, 7 Oct 2009 13:30:44 +0000 (-0400) Subject: Need to group this expression to avoid undefined index warnings. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=259bcea88cb3fd8c1bfcb5f21e3309e2447fd349;p=horde.git Need to group this expression to avoid undefined index warnings. --- diff --git a/framework/Util/lib/Horde/Util.php b/framework/Util/lib/Horde/Util.php index 2798d6319..e07b9a3cc 100644 --- a/framework/Util/lib/Horde/Util.php +++ b/framework/Util/lib/Horde/Util.php @@ -209,7 +209,7 @@ class Horde_Util { return (isset($_GET[$varname]) || isset($_POST[$varname]) || isset($_COOKIE[$varname])) ? $default - : isset($GLOBALS[$varname]) ? $GLOBALS[$varname] : $default; + : (isset($GLOBALS[$varname]) ? $GLOBALS[$varname] : $default); } /**