Warning sur le critère compteur avec id_noisette

J’ai sur une page article (sans aucune noisette il me semble)

Warning: Undefined array key "id_noisette" in /var/www/html/tmp/cache/skel/html_d2a7d43ed1554f3c8b49da07f708b631.php on line 388

Warning: Undefined array key "id_noisette" in /var/www/html/tmp/cache/skel/html_d2a7d43ed1554f3c8b49da07f708b631.php on line 388

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/tmp/cache/skel/html_d2a7d43ed1554f3c8b49da07f708b631.php on line 389

Qui correspondent aux lignes:

   384          // COMPTEUR
   385          $Numrows['_comments-pieds']['compteur_boucle'] = 0;
   386          $Numrows['_comments-pieds']['command'] = $command;
   387          $Numrows['_comments-pieds']['total'] = @intval($iter->count());
   388          $debut_boucle = isset($Pile[0]['debut_comments-pieds'.'_'.$Pile[0]['id_noisette']]) ? $Pile[0]['debut_comments-pieds'.'_'.$Pile[0]['id_noisette']] : _request('debut_comments-pieds'.'_'.$Pile[0]['id_noisette']);
   389          if(substr($debut_boucle, 0, 1)=='@'){
   390

Certainement par là https://git.spip.net/spip-contrib-squelettes/aveline/-/blob/4f8a42453700893f8ac49032171840982f377708/aveline_fonctions.php#L385

Qui appelle cela

$result = phraser_champs_etendus("[(#VAL{{$idb}}|concat{[_(#ENV{id_noisette})]})]", 0, []);

Je suppose qu’une correction pourrait être

- $result = phraser_champs_etendus("[(#VAL{{$idb}}|concat{[_(#ENV{id_noisette})]})]", 0, []);
+ $result = phraser_champs_etendus("[(#VAL{{$idb}}|concat{[_(#ENV{id_noisette,0})]})]", 0, []);

Mais ça ne me semble pas suffisant pour le 3è warning, car $debut_boucle semble pouvoir être null du coup parfois quand même.