From 5de0d217798572dc6d1c33effa8f8d48235e7ec9 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 28 Nov 2024 09:21:24 +0000 Subject: [PATCH] Small fix. sync_user_id could be empty, user_id not --- application/controllers/Lotw.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;