Fix deprecated usage of str_contains
This commit is contained in:
1 parent
a3c0065706
commit
749fd65769
2 files changed
+6
-3
No files matched your search
+5
-2
@@ -147,8 +147,11 @@ function uupApiIsServer($skuId) {
|
||||
}
|
||||
|
||||
function uupApiBuildMajor($build) {
|
||||
if(!str_contains($build, '.')) {
|
||||
if($build == null)
|
||||
return null;
|
||||
|
||||
if(!str_contains($build, '.'))
|
||||
return intval($build);
|
||||
}
|
||||
|
||||
return intval(explode('.', $build)[0]);
|
||||
}
|
||||
Reference in new issue
Block a user