changeset 335:c9147be13386

PHP 8 fix.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Jun 2023 12:44:26 +0300
parents 0ea16a3777b8
children 0d1bd22fcb39
files mgtool.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
     {