- Added site configuration options to bug_report plugin. Plugin is available
only to interface administrators by default. See more information in
plugins/bug_report/README file.
+ - E_NOTICE and unlink error message if user hits delete multiple times
+ before compose page has reloaded.
+
Version 1.5.0 - 2 February 2004
-------------------------------
if (isset($delete) && is_array($delete)) {
$composeMessage = $compose_messages[$session];
foreach($delete as $index) {
- $attached_file = $composeMessage->entities[$index]->att_local_name;
- unlink ($attached_file);
- unset ($composeMessage->entities[$index]);
+ if (!empty($composeMessage->entities) && isset($composeMessage->entities[$index])) {
+ $attached_file = $composeMessage->entities[$index]->att_local_name;
+ if (file_exists($attached_file)) {
+ unlink ($attached_file);
+ }
+ unset ($composeMessage->entities[$index]);
+ }
}
$new_entities = array();
foreach ($composeMessage->entities as $entity) {
return $succes;
}
-?>
\ No newline at end of file
+?>