alecpl
2010-04-28 3978cbf4cd763203087a9090f41c824a1dfab7dd
program/include/rcube_imap_generic.php
@@ -186,8 +186,8 @@
          $buffer = fgets($this->fp, $size);
          if ($buffer === false) {
                fclose($this->fp);
                $this->fp = null;
               @fclose($this->fp);
               $this->fp = null;
              break;
          }
          if (!empty($this->prefs['debug_mode'])) {
@@ -263,7 +263,7 @@
          } else if ($res == 'BAD') {
             return -2;
          } else if ($res == 'BYE') {
                fclose($this->fp);
                @fclose($this->fp);
                $this->fp = null;
             return -3;
          }
@@ -286,7 +286,7 @@
       }
       if ($error && preg_match('/^\* (BYE|BAD) /i', $string, $m)) {
            if (strtoupper($m[1]) == 'BYE') {
                fclose($this->fp);
                @fclose($this->fp);
                $this->fp = null;
            }
          return true;
@@ -311,7 +311,7 @@
       }
       if ($error && preg_match('/^\* (BYE|BAD) /i', $string, $m)) {
            if (strtoupper($m[1]) == 'BYE') {
                fclose($this->fp);
                @fclose($this->fp);
                $this->fp = null;
            }
          return true;
@@ -418,7 +418,7 @@
            return $this->fp;
        }
        fclose($this->fp);
        @fclose($this->fp);
        $this->fp = false;
    
        $this->error    = "Authentication for $user failed (LOGIN): $line";