Change of tableExists function, by instructions deprecated in PHP 5.3

This commit is contained in:
hector
2011-03-25 12:09:25 -04:00
parent 101db6f170
commit cbe4d1b3e4
2 changed files with 28 additions and 10 deletions

View File

@@ -161,7 +161,10 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
if(G::LoadSystemExist($sDataBase)){
G::LoadSystem($sDataBase);
$oDataBase = new database();
$tableExists = $oDataBase->tableExists('USERS', $Fields['PME_SQLCONNECTION']);
$dataBase = $Fields['PME_SQLCONNECTION'];
if($Fields['PME_SQLCONNECTION']=='workflow')
$dataBase = DB_NAME;
$tableExists = $oDataBase->tableExists('USERS', $dataBase);
}
if($tableExists) {
$con = Propel::getConnection($Fields['PME_SQLCONNECTION']);