mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-28 17:08:41 +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) {
|
foreach ($arr as $key => $val) {
|
||||||
if (stripos($httpUserAgent, $val)) {
|
if (stripos($httpUserAgent, $val)) {
|
||||||
$this->browser = $val;
|
$this->browser = $val;
|
||||||
break;
|
|
||||||
|
return $this->browser;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -323,7 +324,8 @@ class Request extends RequestAbstract
|
||||||
foreach ($arr as $key => $val) {
|
foreach ($arr as $key => $val) {
|
||||||
if (stripos($httpUserAgent, $val)) {
|
if (stripos($httpUserAgent, $val)) {
|
||||||
$this->os = $val;
|
$this->os = $val;
|
||||||
break;
|
|
||||||
|
return $this->os;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user