diff --git a/location_taxonomize_location/location_taxonomize_location.module b/location_taxonomize_location/location_taxonomize_location.module index 1694f40..751d0d7 100644 --- a/location_taxonomize_location/location_taxonomize_location.module +++ b/location_taxonomize_location/location_taxonomize_location.module @@ -66,6 +66,9 @@ function location_taxonomize_location_bulk_taxonomize_op($form_state, &$context) $context['sandbox']['current'] = 0; $context['results']['added'] = 0; $context['results']['processed'] = 0; + if (! $max) { + return; + } } // maximum 20 locations per function iteration $limit = 20;