Skip to content

Commit

Permalink
Fix a small PHP notice in a test (undefined index…)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Luraine committed May 30, 2011
1 parent 9fb0d93 commit 8a37cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/apps/09-redirect.php
Expand Up @@ -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);

Expand Down

0 comments on commit 8a37cd0

Please sign in to comment.