diff --git a/python/grass/temporal/univar_statistics.py b/python/grass/temporal/univar_statistics.py index e4dba3b4ac..9e68fd7ce2 100755 --- a/python/grass/temporal/univar_statistics.py +++ b/python/grass/temporal/univar_statistics.py @@ -57,7 +57,7 @@ def compute_univar_stats(registered_map_info, stats_module, fs, rast_region=Fals ) stats_module.inputs.map = id - if rast_region and stats_module.inputs.zones: + if rast_region and (stats_module.inputs.zones or stats_module.name == "r3.univar"): stats_module.env = gs.region_env(raster=id) stats_module.run()