Added missing default statement in switch case (#653)

This commit is contained in:
Roman Kelesidis 2023-03-26 16:00:38 +07:00 committed by GitHub
commit 4d496ba645
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 1 deletions

View file

@ -110,6 +110,9 @@ switch ($mode) {
$this->response['unlock_cron_html'] = '<span class="seed bold">' . $lang['ADMIN_UNLOCKED'] . '</span>';
break;
default:
$this->ajax_die('Invalid mode');
}
$this->response['mode'] = $mode;