Permalink
Browse files

[HttpFoundation] fix #6002

  • Loading branch information...
1 parent 7bfe13c commit f4b630d1e0608059b764229a263d702b5a8facbb @vicb vicb committed Nov 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/HttpFoundation/AcceptHeader.php
@@ -146,7 +146,7 @@ public function first()
{
$this->sort();
- return !empty($this->items) ? $this->items[0] : null;
+ return !empty($this->items) ? reset($this->items) : null;
}
/**

0 comments on commit f4b630d

Please sign in to comment.