From dcc8a56fb3ade9b9fe93ad0b56646fff6f456e75 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 11 Dec 2008 23:17:40 -0700 Subject: [PATCH] User existing variable here --- imp/test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/test.php b/imp/test.php index 7b6236554..809783c37 100644 --- a/imp/test.php +++ b/imp/test.php @@ -23,10 +23,10 @@ function _doConnectionTest() 'secure' => ($_POST['port'] == 'yes') ); - $driver = ($_POST['server_type'] == 'imap') ? 'Socket' : 'Cclient-pop3'; + $driver = ($_POST['server_type'] == 'imap') ? 'Socket' : 'Cclient_pop3'; try { - $imap_client = Horde_Imap_Client::getInstance(($_POST['server_type'] == 'imap') ? 'Socket' : 'Cclient-pop3', $imap_config); + $imap_client = Horde_Imap_Client::getInstance($driver, $imap_config); } catch (Horde_Imap_Client_Exception $e) { return _errorMsg($e); } -- 2.11.0