# HG changeset patch # User Matti Hamalainen # Date 1687168027 -10800 # Node ID 7ae898141a16b70cea867e8f60e403070d80b629 # Parent 0d1bd22fcb390de88125bfebd237e302fea1872d PHP 8 fix. diff -r 0d1bd22fcb39 -r 7ae898141a16 mgtool.php --- a/mgtool.php Mon Jun 19 12:44:52 2023 +0300 +++ b/mgtool.php Mon Jun 19 12:47:07 2023 +0300 @@ -834,7 +834,7 @@ $output = []; // If we are hiding contents of an album, generate no data - if ($parentEntry !== NULL && !$parentEntry["hide_contents"]) + if ($parentEntry === NULL || !$parentEntry["hide_contents"]) { foreach ($entries as $ename => &$edata) {