Aleksander Machniak
2016-04-02 6f2c007d1be866e47bf6a9f8e6900fe6ec2a6901
program/lib/Roundcube/rcube_imap_generic.php
@@ -107,7 +107,11 @@
            $this->debug('C: ' . $log);
        }
        $res = fwrite($this->fp, $string . ($endln ? "\r\n" : ''));
        if ($endln) {
            $string .= "\r\n";
        }
        $res = fwrite($this->fp, $string);
        if ($res === false) {
            @fclose($this->fp);
@@ -174,6 +178,7 @@
                }
            }
        }
        return $res;
    }
@@ -1058,7 +1063,7 @@
     */
    public function connected()
    {
        return ($this->fp && $this->logged) ? true : false;
        return $this->fp && $this->logged;
    }
    /**
@@ -3465,6 +3470,7 @@
        if (!is_array($entries)) {
            $entries = array($entries);
        }
        // create entries string
        // ANNOTATEMORE drafts before version 08 require quoted parameters
        foreach ($entries as $idx => $name) {
@@ -3475,7 +3481,8 @@
        if (!is_array($attribs)) {
            $attribs = array($attribs);
        }
        // create entries string
        // create attributes string
        foreach ($attribs as $idx => $name) {
            $attribs[$idx] = $this->escape($name, true);
        }