]> git.mxchange.org Git - friendica.git/blobdiff - util/maintenance.php
curly braces + spaces added
[friendica.git] / util / maintenance.php
index 28f3a503ad547f1e37f605ebc0b2e6e1a5b714a4..17f64ecc79ef95b4dc8b92090a87f67567fc5184 100644 (file)
@@ -17,14 +17,16 @@ 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]);
+}
 set_config('system', 'maintenance', $maint_mode);
 
-if($maint_mode)
+if ($maint_mode) {
        $mode_str = "maintenance mode";
-else
+} else {
        $mode_str = "normal mode";
+}
 
 echo "\n\tSystem set in $mode_str\n\n";
 echo "Usage:\n\n";