From d236036cc37844792ae006a84e4de2ac46247bf3 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 11 Dec 2024 17:50:14 +0000 Subject: [PATCH] Skip Users without any station_id at lotw_download --- application/controllers/Lotw.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index b1e02da61..b16f8edb6 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -657,6 +657,7 @@ class Lotw extends CI_Controller { foreach ($query->result() as $user) { if ( ($sync_user_id != null) && ($sync_user_id != $user->user_id) ) { continue; } $station_ids=$this->Stations->all_station_ids_of_user($user->user_id); + if ($station_ids == '') { continue; } // User has no Station-ID! next one // Validate that LoTW credentials are not empty // TODO: We don't actually see the error message