This commit is contained in:
Dany De Bontridder 2017-02-16 12:46:44 +01:00
parent 9e7225c9fb
commit b653668557
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ for ($i=0; $i<count($var); $i++)
throw new Exception($name." is not set");
}
$ctl='ok';
extract($_GET,, EXTR_SKIP);
extract($_GET, EXTR_SKIP);
//----------------------------------------------------------------------
// Modification
//----------------------------------------------------------------------

View file

@ -390,14 +390,14 @@ if ( $sa == 'remove' && isNumber($dossier_id) == 1 && $dossier_id != -1 )
/**
* Check if db exists
*/
$str_name=domaine.'dossier'.$dossier_id;
$str_name=sql_string(domaine.'dossier'.$dossier_id);
$database_exist=$cn->exist_database($str_name);
// if db exists for postgres then drop it
if ( $database_exist == 1)
{
$sql="drop database ".domaine."dossier".sql_string($_REQUEST['d']);
$sql="drop database ".$str_name;
ob_start();
if ( $cn->exec_sql($sql)==false)
{