Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 22 → Rev 23

/trunk/services/modules/Ref.php
130,5 → 130,24
}
return $sortie;
}
protected function traiterParametresPost($params_attendu, $params, $pourBDD = true) {
$sortie = array();
foreach ($params_attendu as $num => $nom) {
if (isset($params[$nom]) && $params[$nom] != '') {
if ($pourBDD) {
$params[$nom] = $this->bdd->quote($params[$nom]);
}
$sortie[$nom] = $params[$nom];
} else {
if ($pourBDD) {
$sortie[$nom] = 'NULL';
} else {
$sortie[$nom] = '';
}
}
}
return $sortie;
}
}
?>