mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
A couple of minor PHP 8 fixes that can be applied now
This commit is contained in:
@@ -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' => '',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user