Mercurial > hg > mgallery
comparison mgtool.php @ 337:7ae898141a16
PHP 8 fix.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 Jun 2023 12:47:07 +0300 |
parents | c9147be13386 |
children | 83416b104442 |
comparison
equal
deleted
inserted
replaced
336:0d1bd22fcb39 | 337:7ae898141a16 |
---|---|
832 $images = []; | 832 $images = []; |
833 $albums = []; | 833 $albums = []; |
834 $output = []; | 834 $output = []; |
835 | 835 |
836 // If we are hiding contents of an album, generate no data | 836 // If we are hiding contents of an album, generate no data |
837 if ($parentEntry !== NULL && !$parentEntry["hide_contents"]) | 837 if ($parentEntry === NULL || !$parentEntry["hide_contents"]) |
838 { | 838 { |
839 foreach ($entries as $ename => &$edata) | 839 foreach ($entries as $ename => &$edata) |
840 { | 840 { |
841 if ($edata["hide"]) | 841 if ($edata["hide"]) |
842 continue; | 842 continue; |