Mercurial > hg > rc1
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 57:ade98a608cd3 | 58:082a19037887 |
|---|---|
| 149 function cleanup($args) | 149 function cleanup($args) |
| 150 { | 150 { |
| 151 // $_SESSION['compose']['attachments'] is not a complete record of | 151 // $_SESSION['compose']['attachments'] is not a complete record of |
| 152 // temporary files because loading a draft or starting a forward copies | 152 // temporary files because loading a draft or starting a forward copies |
| 153 // the file to disk, but does not make an entry in that array | 153 // the file to disk, but does not make an entry in that array |
| 154 if (is_array($_SESSION['plugins']['filesystem_attachments'])) { | 154 if (!empty($_SESSION['plugins']) && is_array($_SESSION['plugins']['filesystem_attachments'])) { |
| 155 foreach ($_SESSION['plugins']['filesystem_attachments'] as $group => $files) { | 155 foreach ($_SESSION['plugins']['filesystem_attachments'] as $group => $files) { |
| 156 if ($args['group'] && $args['group'] != $group) { | 156 if ($args['group'] && $args['group'] != $group) { |
| 157 continue; | 157 continue; |
| 158 } | 158 } |
| 159 | 159 |
