svn: /web/doc/trunk/www/ revcheck.php

[email protected] (Kalle Sommer Nielsen)
Newsgroups php.doc.web
Message-ID <[email protected]>
kalle                                    Fri, 01 Jan 2010 13:16:40 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=292875

Log:
Fixed dublicate error messages

Changed paths:
    U   web/doc/trunk/www/revcheck.php

Modified: web/doc/trunk/www/revcheck.php
===================================================================
--- web/doc/trunk/www/revcheck.php	2010-01-01 13:03:17 UTC (rev 292874)
+++ web/doc/trunk/www/revcheck.php	2010-01-01 13:16:40 UTC (rev 292875)
@@ -381,7 +381,7 @@
         $users = get_translators($dbhandle, $LANG);

         if (empty($dirs)) {
-            echo 'no files';
+            echo 'No files';
         } else {
             echo '<p>Choose a directory :</p>';
             echo '<form method="get" action="' . BASE_URL . '/revcheck.php?p=files"><p><select name="dir">';
@@ -408,7 +408,7 @@
             echo '</select><input type="hidden" name="p" value="files" /><input type="submit" value="See outdated files" /></p></form>';
         }

-        if (isset($_GET['dir']) || isset($_GET['user'])) {
+        if (!empty($dirs) && (isset($_GET['dir']) || isset($_GET['user']))) {
             if (isset($_GET['user'])) {
                 $outdated = get_outdated_translator_files($dbhandle, $LANG, $_GET['user']);
             } else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.