From: Michael M Slusarz Date: Fri, 12 Dec 2008 06:17:40 +0000 (-0700) Subject: User existing variable here X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dcc8a56fb3ade9b9fe93ad0b56646fff6f456e75;p=horde.git User existing variable here --- 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); }