diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 982cb9735..c261cbb74 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -666,7 +666,7 @@ class Lotw extends CI_Controller { } $config['upload_path'] = './uploads/'; - $file = $config['upload_path'] . 'lotwreport_download_'.$sync_user_id.'_auto.adi'; + $file = $config['upload_path'] . 'lotwreport_download_'.$user->user_id.'_auto.adi'; if (file_exists($file) && ! is_writable($file)) { $result = "Temporary download file ".$file." is not writable. Aborting!"; continue;