summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-04-28 16:57:09 +0000
committeralecpl <alec@alec.pl>2010-04-28 16:57:09 +0000
commit3978cbf4cd763203087a9090f41c824a1dfab7dd (patch)
treee09120a6b904ac0ed70fcd6c20828f410e38bd21 /program
parentf0485adef1cd9b0d65bcbdd25bc546a2dff4095b (diff)
- use @ operator for fclose() on connection handle
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap_generic.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index 659a61378..6ca6c8f5a 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -186,8 +186,8 @@ class rcube_imap_generic
$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 @@ class rcube_imap_generic
} 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 @@ class rcube_imap_generic
}
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 @@ class rcube_imap_generic
}
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 @@ class rcube_imap_generic
return $this->fp;
}
- fclose($this->fp);
+ @fclose($this->fp);
$this->fp = false;
$this->error = "Authentication for $user failed (LOGIN): $line";