Return earlier

This commit is contained in:
Dennis Eichhorn 2018-01-15 17:38:11 +01:00
parent d3b85fd09c
commit 9a6746ea3a

View File

@ -285,7 +285,8 @@ class Request extends RequestAbstract
foreach ($arr as $key => $val) {
if (stripos($httpUserAgent, $val)) {
$this->browser = $val;
break;
return $this->browser;
}
}
}
@ -323,7 +324,8 @@ class Request extends RequestAbstract
foreach ($arr as $key => $val) {
if (stripos($httpUserAgent, $val)) {
$this->os = $val;
break;
return $this->os;
}
}
}