mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
A couple of minor PHP 8 fixes that can be applied now
This commit is contained in:
parent
c64efe6ecb
commit
65acb988db
11 changed files with 27 additions and 9 deletions
14
admin.php
14
admin.php
|
@ -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' => '',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue