fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / mail_fetch / class.mail_fetch.php
index a58884fda2f588e0a8186e0c7742f22db5f007b0..ac915ea2162e7906184b948ebf3f284a95a2a06a 100644 (file)
@@ -5,7 +5,7 @@
  * Class depends on PHP pcre extension and fsockopen() function. Some features
  * might require PHP 4.3.0 with OpenSSL or PHP 5.1.0+. Class checks those extra 
  * dependencies internally, if used function needs it.
- * @copyright © 2006 The SquirrelMail Project Team
+ * @copyright 2006-2021 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -367,7 +367,7 @@ class mail_fetch {
             while($line = fgets($this->conn)) {
                 if ($line == ".\r\n") {
                     break;
-                } elseif ( $line{0} == '.' ) {
+                } elseif ( $line[0] == '.' ) {
                     $ret .= substr($line,1);
                 } else {
                     $ret.= $line;