[Vtigercrm-commits] [vtiger-commits] r7569 - /vtigercrm/trunk/adodb/drivers/adodb-mysql.inc.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 27 07:02:54 EDT 2006


Author: richie
Date: Tue Jun 27 05:02:49 2006
New Revision: 7569

Log:
appened @ to suppress the exception when giving wrong username,password for db connection, fixes #1151

Modified:
    vtigercrm/trunk/adodb/drivers/adodb-mysql.inc.php

Modified: vtigercrm/trunk/adodb/drivers/adodb-mysql.inc.php
==============================================================================
--- vtigercrm/trunk/adodb/drivers/adodb-mysql.inc.php (original)
+++ vtigercrm/trunk/adodb/drivers/adodb-mysql.inc.php Tue Jun 27 05:02:49 2006
@@ -351,11 +351,9 @@
 		if (!empty($this->port)) $argHostname .= ":".$this->port;
 		
 		if (ADODB_PHPVER >= 0x4300)
-			$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
-												$this->forceNewConnect,$this->clientFlags);
+		$this->_connectionID = @mysql_connect($argHostname,$argUsername,$argPassword,$this->forceNewConnect,$this->clientFlags);
 		else if (ADODB_PHPVER >= 0x4200)
-			$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
-												$this->forceNewConnect);
+			$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,$this->forceNewConnect);
 		else
 			$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword);
 	
@@ -776,4 +774,4 @@
 
 
 }
-?>
+?>





More information about the vtigercrm-commits mailing list