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