summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchriskl2005-11-13 08:23:49 +0000
committerchriskl2005-11-13 08:23:49 +0000
commit0d9c326f3bcc8104e8e1644394de5e932b9d6836 (patch)
treed3fac34c5f7abe242bf7739b27aaf7bb7bc1f842
parent9ea8a5fa6b15a464112e32f17451d11b062d1ba2 (diff)
Fix bug where failed login with shared credentials ticked meant that the server appeared with the logged in icon in the browser
-rw-r--r--libraries/errorhandler.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/errorhandler.inc.php b/libraries/errorhandler.inc.php
index 5afdaeb2..0fcc8d5e 100644
--- a/libraries/errorhandler.inc.php
+++ b/libraries/errorhandler.inc.php
@@ -3,7 +3,7 @@
/**
* Overrides default ADODB error handler to provide nicer error handling.
*
- * $Id: errorhandler.inc.php,v 1.17 2005/05/02 15:47:28 chriskl Exp $
+ * $Id: errorhandler.inc.php,v 1.18 2005/11/13 08:23:49 chriskl Exp $
*/
define('ADODB_ERROR_HANDLER','Error_Handler');
@@ -38,6 +38,8 @@ function Error_Handler($dbms, $fn, $errno, $errmsg, $p1=false, $p2=false)
case 'PCONNECT':
case 'CONNECT':
$_failed = true;
+ unset($_SESSION['sharedUsername']);
+ unset($_SESSION['sharedPassword']);
unset($_SESSION['webdbLogin'][$_REQUEST['server']]);
$msg = $lang['strloginfailed'];
include('./login.php');