[pmwiki-users] PHP warning in HandyTableContents

Hans-Jürgen Godau juergen at godau-witten.de
Fri Jan 20 06:57:58 PST 2023


Now with php 8.2.1 I got further warnings in handytoc.php: "Warning:
Undefined array key..." in lines 58 to 66. I changed all ($args[..]:...)
calls to (isset($args[..]):...).Now the earnings disappeared.
Greetings, jürgen

Am Mo., 16. Jan. 2023 um 16:18 Uhr schrieb Hans-Jürgen Godau <
juergen at godau-witten.de>:

> PHP-Warning of using $[var} instead of {$var} appeared for me in
> HandyTableOfContents: cookbook/handytoc.php on lines 69 and 71.
> So I changed it from
> return Keep("$script_set_args<div ${class}id='htoc'><h3>$title</
> h3></div>");
> return Keep("$script_set_args<div ${class}id='htoc'></div>");
> to
> return Keep("$script_set_args<div {$class}id='htoc'><h3>$title</
> h3></div>");
> return Keep("$script_set_args<div {$class}id='htoc'></div>");
> and the warning disappeared.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20230120/bffaa406/attachment.html>


More information about the pmwiki-users mailing list