forked from uup-dump/api
Fix deprecated usage of str_contains
This commit is contained in:
parent
a3c0065706
commit
749fd65769
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.35.1';
|
||||
return '1.36.0-dev';
|
||||
}
|
||||
|
||||
require_once dirname(__FILE__).'/auths.php';
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user