mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Added missing default statement in switch case (#653)
This commit is contained in:
parent
49ac3503c1
commit
4d496ba645
6 changed files with 17 additions and 1 deletions
|
@ -132,6 +132,9 @@ switch ($mode) {
|
|||
<td>' . $user_ratio . '</td>
|
||||
';
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
||||
|
||||
$this->response['html'] = $html;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -104,6 +104,9 @@ switch ($mode) {
|
|||
$this->response['info'] = $lang['USER_ACTIVATE_OFF'];
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
||||
|
||||
$this->response['mode'] = $mode;
|
||||
|
|
|
@ -133,4 +133,7 @@ switch ($mode) {
|
|||
</table><br />
|
||||
';
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
||||
|
|
|
@ -44,6 +44,9 @@ switch ($mode) {
|
|||
$html = '<img src="./styles/images/good.gif"> <span class="seedmed bold">' . $text . '</span>';
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
||||
|
||||
$this->response['html'] = $html;
|
||||
|
|
|
@ -71,7 +71,8 @@ class Caches
|
|||
$this->ref[$cache_name] =& $this->obj[$cache_name];
|
||||
break;
|
||||
|
||||
default: //filecache
|
||||
case 'filecache':
|
||||
default:
|
||||
if (!isset($this->obj[$cache_name])) {
|
||||
$this->obj[$cache_name] = new Cache\File($this->cfg['db_dir'] . $cache_name . '/', $this->cfg['prefix']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue