Added missing default statement in switch case (#88)

https://github.com/torrentpier/torrentpier/pull/653
This commit is contained in:
Roman Kelesidis 2023-04-01 00:34:53 +07:00 committed by GitHub
parent d52e744152
commit 6c28494061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 0 deletions

View File

@ -126,6 +126,9 @@ switch($mode)
<td>'. $user_ratio .'</td>
';
break;
default:
$this->ajax_die('Invalid mode');
}
$this->response['html'] = $html;

View File

@ -110,6 +110,10 @@ 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;

View File

@ -78,6 +78,10 @@ switch ($mode)
$this->response['info'] = $lang['USER_ACTIVATE_OFF'];
break;
default:
$this->ajax_die('Invalid mode');
}
$this->response['mode'] = $mode;

View File

@ -127,4 +127,7 @@ switch ($mode)
</table><br />
';
break;
default:
$this->ajax_die('Invalid mode');
}

View File

@ -49,6 +49,9 @@ switch ($mode)
$html .= '<br />'.$lang['SITEMAP_NOTIFY_SEARCH'].' Weblogs: <font style="color: red;">'.$lang['SITEMAP_ERROR'].'</font> URL: <a href="http://rpc.weblogs.com/pingSiteForm?name=InfraBlog&url='.urlencode($map_link).'" target="_blank">http://rpc.weblogs.com/pingSiteForm?name=InfraBlog&url='.$map_link.'</a>';
}
break;
default:
$this->ajax_die('Invalid mode');
}
$this->response['html'] = $html;

View File

@ -66,6 +66,9 @@ switch($mode)
}
}
break;
default:
$this->ajax_die('Invalid mode');
}
$this->response['html'] = $html;