Warning sur syntaxe raccourcie des boucles et tables optionnelles #4951

Open
opened 6 days ago by b_b · 0 comments
b_b commented 6 days ago
Owner

Sur le master, sans table spip_signatures la boucle suivante :

<BOUCLE_nb_signatures(SIGNATURES?)/>#TOTAL_BOUCLE<//B_nb_signatures>

génère deux warnings :

Warning: Undefined array key "_nb_signatures" in ecrire/public/composer.php(95) : eval()'d code on line 15

Warning: Trying to access array offset on value of type null in ecrire/public/composer.php(95) : eval()'d code on line 15

Sans utiliser la syntaxe raccourci de la boucle, comme ce qui suite, aucun warning :

<BOUCLE_nb_signatures(SIGNATURES?)>
</BOUCLE_nb_signatures>
#TOTAL_BOUCLE
</B_nb_signatures>
Sur le master, sans table `spip_signatures` la boucle suivante : ``` <BOUCLE_nb_signatures(SIGNATURES?)/>#TOTAL_BOUCLE<//B_nb_signatures> ``` génère deux warnings : ``` Warning: Undefined array key "_nb_signatures" in ecrire/public/composer.php(95) : eval()'d code on line 15 Warning: Trying to access array offset on value of type null in ecrire/public/composer.php(95) : eval()'d code on line 15 ``` Sans utiliser la syntaxe raccourci de la boucle, comme ce qui suite, aucun warning : ``` <BOUCLE_nb_signatures(SIGNATURES?)> </BOUCLE_nb_signatures> #TOTAL_BOUCLE </B_nb_signatures> ```
b_b added the
bug
label 6 days ago
b_b added this to the 4.0 milestone 6 days ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.