From 7d96de6619cf17fcd88a32003b14f2707ce669cc Mon Sep 17 00:00:00 2001 From: pzaremba Date: Wed, 5 Feb 2014 13:30:32 +0100 Subject: [PATCH] one more revert. --- framework/web/Request.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/web/Request.php b/framework/web/Request.php index 851e2c83e3..21b5c38fb1 100644 --- a/framework/web/Request.php +++ b/framework/web/Request.php @@ -955,8 +955,7 @@ class Request extends \yii\base\Request $n = preg_match_all('/\s*([\w\/\-\*]+)\s*(?:;\s*q\s*=\s*([\d\.]+))?[^,]*/', $header, $matches, PREG_SET_ORDER); for ($i = 0; $i < $n; ++$i) { if (!empty($matches[$i][1])) { - $accepts[] = [$matches[$i][1], isset($matches[$i][2]) ? (float)$matches[$i][2] : 1, - $i]; + $accepts[] = [$matches[$i][1], isset($matches[$i][2]) ? (float)$matches[$i][2] : 1, $i]; } } usort($accepts, function ($a, $b) {