mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Stop Download immediatly if we're victom of the ban
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user