Mercurial > hg > rc1
diff plugins/filesystem_attachments/filesystem_attachments.php @ 58:082a19037887 default tip
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Wed, 15 Oct 2025 14:06:01 -0400 |
| parents | 7498e7cacd71 |
| children |
line wrap: on
line diff
--- a/plugins/filesystem_attachments/filesystem_attachments.php Wed Oct 08 09:33:13 2025 -0400 +++ b/plugins/filesystem_attachments/filesystem_attachments.php Wed Oct 15 14:06:01 2025 -0400 @@ -151,7 +151,7 @@ // $_SESSION['compose']['attachments'] is not a complete record of // temporary files because loading a draft or starting a forward copies // the file to disk, but does not make an entry in that array - if (is_array($_SESSION['plugins']['filesystem_attachments'])) { + if (!empty($_SESSION['plugins']) && is_array($_SESSION['plugins']['filesystem_attachments'])) { foreach ($_SESSION['plugins']['filesystem_attachments'] as $group => $files) { if ($args['group'] && $args['group'] != $group) { continue;
