didou           Wed Jan 19 10:20:15 2005 EDT

  Modified files:              
    /phpdoc/scripts     checkent.php 
  Log:
  always close the ftp handle
  
http://cvs.php.net/diff.php/phpdoc/scripts/checkent.php?r1=1.9&r2=1.10&ty=u
Index: phpdoc/scripts/checkent.php
diff -u phpdoc/scripts/checkent.php:1.9 phpdoc/scripts/checkent.php:1.10
--- phpdoc/scripts/checkent.php:1.9     Wed Aug 25 04:36:32 2004
+++ phpdoc/scripts/checkent.php Wed Jan 19 10:20:15 2005
@@ -18,7 +18,7 @@
   |             Gabor Hojtsy <[EMAIL PROTECTED]>                              |
   +----------------------------------------------------------------------+
  
-  $Id: checkent.php,v 1.9 2004/08/25 08:36:32 didou Exp $
+  $Id: checkent.php,v 1.10 2005/01/19 15:20:15 didou Exp $
 */
 
 if ($argc > 1 || in_array($argv[1], array('--help', '-help', '-h', '-?'))) {
@@ -113,8 +113,8 @@
                         }
                     } else {
                         errormsg ($entity, "could not login as anonymous to 
FTP host: " . $url["host"]);
-                        ftp_quit($ftp);
                     }
+                    ftp_quit($ftp);
                 } else {
                     errormsg ($entity, "could not connect to " . $url["host"]);
                 }

Reply via email to