Need to group this expression to avoid undefined index warnings.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 7 Oct 2009 13:30:44 +0000 (09:30 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 7 Oct 2009 13:30:44 +0000 (09:30 -0400)
framework/Util/lib/Horde/Util.php

index 2798d63..e07b9a3 100644 (file)
@@ -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);
     }
 
     /**