From: Michael M Slusarz Date: Wed, 12 Jan 2011 08:04:38 +0000 (-0700) Subject: Silence undefined index errors X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b752c015cdda91a752b3d7dca6c5009599bce1f1;p=horde.git Silence undefined index errors --- diff --git a/framework/Url/lib/Horde/Url.php b/framework/Url/lib/Horde/Url.php index 02422fd37..578c03ac3 100644 --- a/framework/Url/lib/Horde/Url.php +++ b/framework/Url/lib/Horde/Url.php @@ -111,8 +111,8 @@ class Horde_Url } $pairs = explode('&', $query); foreach ($pairs as $pair) { - @list($parameter, $value) = explode('=', urldecode($pair), 2); - $this->add($parameter, $value); + $result = explode('=', urldecode($pair), 2); + $this->add($result[0], isset($result[1]) ? $result[1] : null); } }