[pmwiki-users] PHP warning in HandyTableContents

Hans-Jürgen Godau juergen at godau-witten.de
Mon Jan 16 07:18:22 PST 2023


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/20230116/486d23ae/attachment.html>


More information about the pmwiki-users mailing list