Do not add text in verbose checkdb message.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Oct 2007 23:12:19 +0000 (00:12 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 28 Oct 2007 23:13:37 +0000 (00:13 +0100)
The verbose state is already indicated in the mail subject, so there's no
need of a reminder two lines below. This avoid void mail to be sent when no
db check failed in verbose mode.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/cron/checkdb.php

index b8bab65..7abab81 100755 (executable)
@@ -64,9 +64,8 @@ if ( PEAR::isError($opts) ) {
     $opts = $opts[0];
     foreach ( $opts as $opt) {
         switch ($opt[0]) {
-            case "v":
-                $opt_verbose=true;
-            echo "Mode verbeux\n";
+          case "v":
+            $opt_verbose=true;
             break;
         }
     }