check if station_id is empty or null

This commit is contained in:
int2001
2026-02-01 17:38:10 +00:00
parent 4ae7fd7b13
commit 3fe22d6500

View File

@@ -264,6 +264,9 @@ class Stationsetup_model extends CI_Model {
if ($imported >= 1000){
return (array('limit',$imported."locations imported. Maximum limit of 1000 locations reached.")); // Prevent importing more than 1000 locations at once
}
if (trim($loc['station_uuid'] ?? '') == '') { // Make sure it's null, even if it's set to ''
$loc['station_uuid']=null;
}
// Data for station_profile
$dbdata = [
'station_active' => 0,