Stop Download immediatly if we're victom of the ban

This commit is contained in:
int2001
2025-10-07 17:41:07 +00:00
parent 28f2c7ddbc
commit 4936633a8d
2 changed files with 12 additions and 2 deletions

View File

@@ -61,6 +61,10 @@ class Clublog extends CI_Controller
if (!empty($users)) {
foreach ($users as $user) {
$r = $this->clublog_model->downloadUser($user->user_id, $user->user_clublog_name, $user->user_clublog_password);
if ($r == 'Impossible to reach Clublog') { // Stop Download immediatly, because we're blocked
log_message("Error","We're blocked by Clublog. Stopping Download!");
break;
}
}
} else {
$r = __("No user has configured Clublog.");