diff --git a/docs/scripts/revcheck.php b/docs/scripts/revcheck.php
index 5c52db03..f5c3cab0 100755
--- a/docs/scripts/revcheck.php
+++ b/docs/scripts/revcheck.php
@@ -721,6 +721,8 @@ print ($navbar."
\n");
// Files table goes here
// =========================================================================
+if (count($files_status) != 0) {
+
print <<
@@ -745,63 +747,64 @@ print <<
END_OF_MULTILINE;
-// This was the previous directory [first]
-$prev_dir = $new_dir = $DOCDIR."en";
-
-// Go through all files collected
-foreach ($files_status as $num => $file) {
-
- // Make the maintainer a link, if we have that maintainer in the list
- if (isset($maint_by_nick[$file["maintainer"]])) {
- $file["maintainer"] = '' . $file["maintainer"] . '';
- }
-
- // If we have a 'numeric' revision diff and it is not zero,
- // make a link to the CVS repository's diff script
- if ($file["revision"][2] != "n/a" && $file["revision"][2] !== 0) {
- $file["short_name"] = "" . $file["short_name"] . "";
- }
-
- // Guess the new directory from the full name of the file
- $new_dir = dirname($file["full_name"]);
+ // This was the previous directory [first]
+ $prev_dir = $new_dir = $DOCDIR."en";
- // If this is a new directory, put out dir headline
- if ($new_dir != $prev_dir) {
+ // Go through all files collected
+ foreach ($files_status as $num => $file) {
+
+ // Make the maintainer a link, if we have that maintainer in the list
+ if (isset($maint_by_nick[$file["maintainer"]])) {
+ $file["maintainer"] = '' . $file["maintainer"] . '';
+ }
+
+ // If we have a 'numeric' revision diff and it is not zero,
+ // make a link to the CVS repository's diff script
+ if ($file["revision"][2] != "n/a" && $file["revision"][2] !== 0) {
+ $file["short_name"] = "" . $file["short_name"] . "";
+ }
+
+ // Guess the new directory from the full name of the file
+ $new_dir = dirname($file["full_name"]);
- // Drop out the unneeded parts from the dirname...
- $display_dir = str_replace($DOCDIR."en/", "", dirname($file["full_name"]));
+ // If this is a new directory, put out dir headline
+ if ($new_dir != $prev_dir) {
+
+ // Drop out the unneeded parts from the dirname...
+ $display_dir = str_replace($DOCDIR."en/", "", dirname($file["full_name"]));
+
+ // Print out directory header
+ print "$display_dir |
\n";
+
+ // Store the new actual directory
+ $prev_dir = $new_dir;
+ }
- // Print out directory header
- print "$display_dir |
\n";
-
- // Store the new actual directory
- $prev_dir = $new_dir;
+ // Write out the line for the current file (get file name shorter)
+ print "{$file['short_name']} | ".
+ " {$file['revision'][0]} | " .
+ " {$file['revision'][1]} | ".
+ "{$file['revision'][2]} | ".
+ "{$file['size'][0]} | ".
+ "{$file['size'][1]} | ".
+ "{$file['size'][2]} | ".
+ "{$file['date'][0]} | ".
+ "{$file['date'][1]} | ".
+ "{$file['date'][2]} | ".
+ "{$file['maintainer']} | ".
+ "".trim($file['status'])." |
\n";
+
}
- // Write out the line for the current file (get file name shorter)
- print "{$file['short_name']} | ".
- " {$file['revision'][0]} | " .
- " {$file['revision'][1]} | ".
- "{$file['revision'][2]} | ".
- "{$file['size'][0]} | ".
- "{$file['size'][1]} | ".
- "{$file['size'][2]} | ".
- "{$file['date'][0]} | ".
- "{$file['date'][1]} | ".
- "{$file['date'][2]} | ".
- "{$file['maintainer']} | ".
- "".trim($file['status'])." |
\n";
+ print("
\n
\n$navbar
\n");
}
-print("\n
\n$navbar
\n");
-
-
// =========================================================================
// Work in progress table goes here
// =========================================================================