|
|
@@ -343,8 +343,12 @@ for($i = 0; $data = fgetcsv($handle); $i++) {
|
|
|
if($archive_missing) {
|
|
|
foreach($missing_locations as $missing_location) {
|
|
|
echo sprintf("Location#%s - %s archived.\n", $missing_location->id, $missing_location->name);
|
|
|
+
|
|
|
$missing_location->archived = 1;
|
|
|
- $missing_location->commit();
|
|
|
+
|
|
|
+ if(!$dry_run) {
|
|
|
+ $missing_location->commit();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|