Fix deprecated usage of str_contains

This commit is contained in:
eraseyourknees committed 2022-09-07 01:03:23 +02:00
1 parent a3c0065706
commit 749fd65769
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -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]);
}