diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-06 10:04:29 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-06 10:04:29 +0100 |
| commit | 9fb1e345d727b62b6b57cb114ee34b0438b069c3 (patch) | |
| tree | 82955aa9c71c91e3da2e745fb5d3bf37fbfe1c1a /list_pages.php | |
| parent | f9b0ddbc72c7a6bb860f2858cc13dcfdfba35d1c (diff) | |
| download | wiki-9fb1e345d727b62b6b57cb114ee34b0438b069c3.tar.gz wiki-9fb1e345d727b62b6b57cb114ee34b0438b069c3.tar.bz2 wiki-9fb1e345d727b62b6b57cb114ee34b0438b069c3.zip | |
php8.4 style tweak for short arry style
Diffstat (limited to 'list_pages.php')
| -rwxr-xr-x | list_pages.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/list_pages.php b/list_pages.php index cdf907f..2154193 100755 --- a/list_pages.php +++ b/list_pages.php @@ -50,7 +50,7 @@ if( isset( $_REQUEST["batch_submit"] ) && isset( $_REQUEST["checked"] ) && $_REQ foreach( $_REQUEST["checked"] as $deletepage ) { $tmpPage = new BitPage( $deletepage ); if( !$tmpPage->load() || !$tmpPage->expunge() ) { - array_merge( $errors, array_values( $tmpPage->mErrors )); + [ ...$errors ?? [], ...array_values( $tmpPage->mErrors )]; } } if( !empty( $errors )) { |
