Piwigo / piwigo-smartpocket

2 stars 3 forks source link

PHP Errors in Tag Sidebar #10

Closed thegcat closed 11 months ago

thegcat commented 1 year ago

When looking at the mobile view for a Piwigo gallery the tags menu will show errors like:

<li><a class="tagLevel<br />
<b>Warning</b>:  Undefined array key "level" 

Throwing a guard around the $tag.level as is done in the default and modus themes in /template/menubar_tags.tpl solves the problem for us. Line 4 becomes:

                <li><a class="tagLevel{if isset($tag.level)}{$tag.level}{/if}" href=
LintyDev commented 11 months ago

Hi, SmartPocket is now compatible with PHP 8 and I have fixed this problem in this commit 8d559fe . A new version of SmartPocket compatible with PHP8 and Piwigo 14 is available.