Skip to content
Browse files

Fix a small PHP notice in a test (undefined index…)

  • Loading branch information...
1 parent 9fb0d93 commit 8a37cd07f470e27fef5b787b53b75a0f36180d30 Fabrice Luraine committed Mar 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/apps/09-redirect.php
View
2 tests/apps/09-redirect.php
@@ -9,7 +9,7 @@ function index()
foreach($pairs as $pair)
{
$keyAndValue = explode('=', $pair);
- $params[$keyAndValue[0]] = $keyAndValue[1];
+ $params[$keyAndValue[0]] = count($keyAndValue) > 1 ? $keyAndValue[1] : '';
}
array_shift($params);

0 comments on commit 8a37cd0

Please sign in to comment.
Something went wrong with that request. Please try again.