Notice deprecated sqlite #5331

Closed
opened 1 week ago by tcharlss · 2 comments
tcharlss commented 1 week ago
Owner

SPIP 4.2-dev / PHP 8.1

Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in (...)/ecrire/req/sqlite_generique.php on line 2102

La ligne en question :

return $l->quote($v);
SPIP 4.2-dev / PHP 8.1 ``` Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in (...)/ecrire/req/sqlite_generique.php on line 2102 ``` [La ligne en question](https://git.spip.net/spip/spip/src/branch/master/ecrire/req/sqlite_generique.php#L2102) : ```php return $l->quote($v); ```
b_b added the
bug
label 1 week ago
b_b added this to the 4.1 milestone 1 week ago
Poster
Owner

Ces 2 boucles provoquent la notice, objet et id_objet ne sont pas dans l'env :

<BOUCLE_album_vu(albums_liens) {id_album} {objet} {id_objet}>
<BOUCLE_album_vu(albums_liens) {id_album} {objet=#ENV{id_objet}} {id_objet=#ENV{id_objet}}>

Celle-là non :

<BOUCLE_album_vu(albums_liens) {id_album} {objet=#ENV{objet,''}} {id_objet=#ENV{id_objet,''}}>
Ces 2 boucles provoquent la notice, `objet` et `id_objet` ne sont pas dans l'env : ```html <BOUCLE_album_vu(albums_liens) {id_album} {objet} {id_objet}> <BOUCLE_album_vu(albums_liens) {id_album} {objet=#ENV{id_objet}} {id_objet=#ENV{id_objet}}> ``` Celle-là non : ```html <BOUCLE_album_vu(albums_liens) {id_album} {objet=#ENV{objet,''}} {id_objet=#ENV{id_objet,''}}> ```
Owner

bon. Au plus simple.

bon. Au plus simple.
marcimat closed this issue 18 hours ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.