HOR-721
This commit is contained in:
@@ -274,14 +274,15 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(isset($nameOfTable)){
|
if(isset($nameOfTable) && $nameOfTable !== ''){
|
||||||
if(in_array($nameOfTable,$aListAllTables)){
|
if(in_array($nameOfTable,$aListAllTables)){
|
||||||
G::SendTemporalMessage( 'ID_NOT_EXECUTE_QUERY', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_NOT_EXECUTE_QUERY', 'error', 'labels' );
|
||||||
throw new SQLException(G::loadTranslation('ID_NOT_EXECUTE_QUERY'));
|
throw new SQLException(G::loadTranslation('ID_NOT_EXECUTE_QUERY'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($arrayOfTables)) {
|
if (is_array($arrayOfTables)){
|
||||||
foreach ($arrayOfTables as $row){
|
foreach ($arrayOfTables as $row){
|
||||||
|
if(!empty($row)){
|
||||||
if(in_array($row, $aListAllTables)){
|
if(in_array($row, $aListAllTables)){
|
||||||
G::SendTemporalMessage( 'ID_NOT_EXECUTE_QUERY', 'error', 'labels' );
|
G::SendTemporalMessage( 'ID_NOT_EXECUTE_QUERY', 'error', 'labels' );
|
||||||
throw new SQLException(G::loadTranslation('ID_NOT_EXECUTE_QUERY'));
|
throw new SQLException(G::loadTranslation('ID_NOT_EXECUTE_QUERY'));
|
||||||
@@ -290,6 +291,7 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$statement = trim( $SqlStatement );
|
$statement = trim( $SqlStatement );
|
||||||
$statement = str_replace( '(', '', $statement );
|
$statement = str_replace( '(', '', $statement );
|
||||||
|
|||||||
Reference in New Issue
Block a user