Mercurial > hg > mgallery
changeset 337:7ae898141a16
PHP 8 fix.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 Jun 2023 12:47:07 +0300 |
parents | 0d1bd22fcb39 |
children | 83416b104442 |
files | mgtool.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {