[Web] Fix cow level, sorry :(

master
andryyy 2020-03-04 12:54:38 +01:00
parent e91ddef717
commit b1242259e7
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 6 additions and 1 deletions

View File

@ -1275,7 +1275,12 @@ function license($action, $data = null) {
$_SESSION['gal']['valid'] = "true";
$_SESSION['gal']['c'] = $json_return['c'];
$_SESSION['gal']['s'] = $json_return['s'];
$_SESSION['gal']['m'] = str_repeat('🐄', substr_count($json_return['m'], 'o'));
if ($json_return['m'] == 'NoMoore') {
$_SESSION['gal']['m'] = '🐄';
}
else {
$_SESSION['gal']['m'] = str_repeat('🐄', substr_count($json_return['m'], 'o'));
}
}
elseif ($json_return['response'] === "invalid") {
$_SESSION['gal']['valid'] = "false";