Standards, like always

This commit is contained in:
Michael 2017-03-19 14:57:36 +00:00
parent 8dd732a896
commit 51f93346d6

View file

@ -17,13 +17,13 @@ unset($db_host, $db_user, $db_pass, $db_data);
Config::load();
$maint_mode = 1;
if($argc > 1) {
if ($argc > 1) {
$maint_mode = intval($argv[1]);
}
Config::set('system', 'maintenance', $maint_mode);
if($maint_mode AND ($argc > 2)) {
if ($maint_mode AND ($argc > 2)) {
$reason_arr = $argv;
array_shift($reason_arr);
array_shift($reason_arr);
@ -34,7 +34,7 @@ if($maint_mode AND ($argc > 2)) {
Config::set('system', 'maintenance_reason', '');
}
if($maint_mode) {
if ($maint_mode) {
$mode_str = "maintenance mode";
} else {
$mode_str = "normal mode";