Aleksander Machniak
2016-03-28 7462095f60191bf420298be41854a14fd01d2864
Small code improvements
1 files modified
11 ■■■■ changed files
program/lib/Roundcube/rcube_imap_generic.php 11 ●●●● patch | view | raw | blame | history
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;
    }
@@ -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);
        }