@@ -230,16 +230,16 @@ function modifier()
230
230
$ requete = 'UPDATE afup_site_article
231
231
SET
232
232
id_site_rubrique = ' . $ this ->bdd ->echapper ($ this ->id_site_rubrique ) . ',
233
- id_personne_physique = ' . $ this ->bdd ->echapper ($ this ->id_personne_physique ) . ',
233
+ id_personne_physique = ' . $ this ->bdd ->echapper ($ this ->id_personne_physique ?: null ) . ',
234
234
titre = ' . $ this ->bdd ->echapper ($ this ->titre ) . ',
235
235
raccourci = ' . $ this ->bdd ->echapper ($ this ->raccourci ) . ',
236
236
chapeau = ' . $ this ->bdd ->echapper ($ this ->chapeau ) . ',
237
237
contenu = ' . $ this ->bdd ->echapper ($ this ->contenu ) . ',
238
238
type_contenu = ' . $ this ->bdd ->echapper ($ this ->type_contenu ) . ',
239
239
position = ' . $ this ->bdd ->echapper ($ this ->position ) . ',
240
240
date = ' . $ this ->bdd ->echapper ($ this ->date ) . ',
241
- theme = ' . $ this ->bdd ->echapper ($ this ->theme ) . ',
242
- id_forum = ' . $ this ->bdd ->echapper ($ this ->id_forum ) . ',
241
+ theme = ' . $ this ->bdd ->echapper ($ this ->theme ?: null ) . ',
242
+ id_forum = ' . $ this ->bdd ->echapper ($ this ->id_forum ?: null ) . ',
243
243
etat = ' . $ this ->bdd ->echapper ($ this ->etat ) . '
244
244
WHERE
245
245
id = ' . $ this ->bdd ->echapper ($ this ->id );
@@ -252,16 +252,16 @@ function inserer()
252
252
$ requete = 'INSERT INTO afup_site_article
253
253
SET
254
254
id_site_rubrique = ' . $ this ->bdd ->echapper ($ this ->id_site_rubrique ) . ',
255
- id_personne_physique = ' . $ this ->bdd ->echapper ($ this ->id_personne_physique ) . ',
255
+ id_personne_physique = ' . $ this ->bdd ->echapper ($ this ->id_personne_physique ?: null ) . ',
256
256
titre = ' . $ this ->bdd ->echapper ($ this ->titre ) . ',
257
257
raccourci = ' . $ this ->bdd ->echapper ($ this ->raccourci ) . ',
258
258
chapeau = ' . $ this ->bdd ->echapper ($ this ->chapeau ) . ',
259
259
contenu = ' . $ this ->bdd ->echapper ($ this ->contenu ) . ',
260
260
type_contenu = ' . $ this ->bdd ->echapper ($ this ->type_contenu ) . ',
261
261
position = ' . $ this ->bdd ->echapper ($ this ->position ) . ',
262
262
date = ' . $ this ->bdd ->echapper ($ this ->date ) . ',
263
- theme = ' . $ this ->bdd ->echapper ($ this ->theme ) . ',
264
- id_forum = ' . $ this ->bdd ->echapper ($ this ->id_forum ) . ',
263
+ theme = ' . $ this ->bdd ->echapper ($ this ->theme ?: null ) . ',
264
+ id_forum = ' . $ this ->bdd ->echapper ($ this ->id_forum ?: null ) . ',
265
265
etat = ' . $ this ->bdd ->echapper ($ this ->etat );
266
266
if ($ this ->id > 0 ) {
267
267
$ requete .= ', id = ' . $ this ->bdd ->echapper ($ this ->id );
0 commit comments