From 20fa98ce601673f7352867133066b2d910694540 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sun, 25 Oct 2015 15:29:46 +0000 Subject: [PATCH] imap : the cert validation switch was not functionnal git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2378 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- imap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imap.php b/imap.php index ed55a4a..0a7e351 100644 --- a/imap.php +++ b/imap.php @@ -44,7 +44,7 @@ class imap if ($password === null) throw new Exception ("No password provided for IMAP server", 500); $imapssl = ($imapssl !== false) ? "/ssl" : ""; - $imapcertvalidate = ($imapcertvalidate !== false) ? "/novalidate-cert" : ""; + $imapcertvalidate = ($imapcertvalidate === false) ? "/novalidate-cert" : ""; $this->mailbox = "{"."$imapserver:$imapport/imap$imapssl$imapcertvalidate". "/user=$username}"; if (! array_key_exists ($this->mailbox, self::$instance)) @@ -174,6 +174,7 @@ class imap $res = array_map (function ($folder) { return mb_convert_encoding ($folder, "UTF-8", "UTF7-IMAP"); }, $res); + natsort ($res); return $res; }