/branches/v2.8-houe/jrest/bibliotheque/GestionImage.php |
---|
114,7 → 114,7 |
private function construireRequeteInsertionImage($informations_image) { |
$infos = array( |
'date_creation' => 'NOW()', |
'date_modification' => 'NULL'); |
'date_modification' => 'NOW()'); |
foreach ($informations_image as $champ => $valeur) { |
$infos[$champ] = is_null($valeur) ? 'NULL' : Cel::db()->proteger($valeur); |
} |
/branches/v2.8-houe/jrest/bibliotheque/GestionObservation.php |
---|
510,7 → 510,7 |
$valeurs .= $valeur.', '; |
} |
$champs = '('.$champs.'mots_cles_texte, transmission, date_creation, date_modification, date_transmission)'; |
$valeurs = '('.$valeurs.'"", 0, now(), now(), "0000-00-00 00:00:00")'; |
$valeurs = '('.$valeurs.'"", 0, NOW(), NOW(), NULL)'; |
$sous_requete = $champs.' VALUES '.$valeurs; |
return $sous_requete; |