mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Return earlier
This commit is contained in:
parent
d3b85fd09c
commit
9a6746ea3a
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user