diff --git a/main/document/document.php b/main/document/document.php index 2841c56b3d..fb43ae6633 100644 --- a/main/document/document.php +++ b/main/document/document.php @@ -46,11 +46,15 @@ require_once $lib_path . 'fileDisplay.lib.php'; api_protect_course_script(true); -//erase temp nanogons' audio +//erase temp nanogons' audio, image edit if(isset($_SESSION['temp_audio_nanogong']) && !empty($_SESSION['temp_audio_nanogong'])) { unlink($_SESSION['temp_audio_nanogong']); } +if(isset($_SESSION['temp_realpath_image']) && !empty($_SESSION['temp_realpath_image'])) { + unlink($_SESSION['temp_realpath_image']); +} + //Removing sessions unset($_SESSION['draw_dir']); unset($_SESSION['paint_dir']);