chg: [user login profile] old version compatibility

pull/9432/head
iglocska 2023-11-29 12:20:37 +01:00
parent ac8f507d55
commit affae66a17
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 0 deletions

View File

@ -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 {