diff --git a/application/models/Stationsetup_model.php b/application/models/Stationsetup_model.php index 360008151..c1e4f16f0 100644 --- a/application/models/Stationsetup_model.php +++ b/application/models/Stationsetup_model.php @@ -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,