mirror of https://github.com/MISP/MISP
chg: [user login profile] old version compatibility
parent
ac8f507d55
commit
affae66a17
|
@ -68,6 +68,9 @@ class UserLoginProfile extends AppModel
|
|||
*/
|
||||
public function _getUserProfile() {
|
||||
if (!$this->userProfile) {
|
||||
if (version_compare(PHP_VERSION, '7.4.0') >= 0) {
|
||||
return [];
|
||||
}
|
||||
// below uses https://github.com/browscap/browscap-php
|
||||
if (class_exists('\BrowscapPHP\Browscap')) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue