mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Added missing default statement in switch case (#88)
https://github.com/torrentpier/torrentpier/pull/653
This commit is contained in:
parent
d52e744152
commit
6c28494061
@ -126,6 +126,9 @@ switch($mode)
|
||||
<td>'. $user_ratio .'</td>
|
||||
';
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
||||
|
||||
$this->response['html'] = $html;
|
||||
|
@ -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;
|
@ -78,6 +78,10 @@ switch ($mode)
|
||||
$this->response['info'] = $lang['USER_ACTIVATE_OFF'];
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
||||
|
||||
$this->response['mode'] = $mode;
|
||||
|
@ -127,4 +127,7 @@ switch ($mode)
|
||||
</table><br />
|
||||
';
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
@ -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;
|
||||
|
@ -66,6 +66,9 @@ switch($mode)
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
}
|
||||
|
||||
$this->response['html'] = $html;
|
||||
|
Loading…
Reference in New Issue
Block a user