A couple of minor PHP 8 fixes that can be applied now

This commit is contained in:
Ana Els 2021-01-18 15:18:40 +00:00 committed by MatthieuLP
parent c64efe6ecb
commit 65acb988db
11 changed files with 27 additions and 9 deletions

View file

@ -239,6 +239,13 @@ if ($nb_photos_in_caddie > 0)
'U_CADDIE' => $link_start.'batch_manager&filter=prefilter-caddie',
)
);
} else {
$template->assign(
array(
'NB_PHOTOS_IN_CADDIE' => 0,
'U_CADDIE' => '',
)
);
}
// any photos with no md5sum ?
@ -263,6 +270,13 @@ if ($nb_orphans > 0)
'U_ORPHANS' => $link_start.'batch_manager&filter=prefilter-no_album',
)
);
} else {
$template->assign(
array(
'NB_ORPHANS' => 0,
'U_ORPHANS' => '',
)
);
}
// +-----------------------------------------------------------------------+