diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-28 16:57:09 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-28 16:57:09 +0000 |
| commit | 576146d49c58f628874d6e83750cd3b38ac0bd58 (patch) | |
| tree | f97df9222b2e443e7125871df97d1a27fcfa0b9a /roundcubemail/program/include | |
| parent | 41f807e9be48b543181b213c26a5342de5c71572 (diff) | |
- use @ operator for fclose() on connection handle
git-svn-id: https://svn.roundcube.net/trunk@3574 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap_generic.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/roundcubemail/program/include/rcube_imap_generic.php b/roundcubemail/program/include/rcube_imap_generic.php index 659a61378..6ca6c8f5a 100644 --- a/roundcubemail/program/include/rcube_imap_generic.php +++ b/roundcubemail/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"; |
