summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main/Location.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-05-31 14:48:51 -0700
committerMark Wells <mark@freeside.biz>2012-05-31 14:48:51 -0700
commitb1f580c37e3da920fd6669e7431fd8cb06810f35 (patch)
treefb540b0bd36e23e9c60c1541497a78478877c7a7 /FS/FS/cust_main/Location.pm
parentdda70549e974d4b559f9d5a117948b931813c7d1 (diff)
fix some issues with upgrade/initial setup, #940
Diffstat (limited to 'FS/FS/cust_main/Location.pm')
-rw-r--r--FS/FS/cust_main/Location.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_main/Location.pm b/FS/FS/cust_main/Location.pm
index d1d6d67..8e30bb6 100644
--- a/FS/FS/cust_main/Location.pm
+++ b/FS/FS/cust_main/Location.pm
@@ -8,7 +8,7 @@ use FS::cust_location;
use Carp qw(carp);
-$DEBUG = 1;
+$DEBUG = 0;
$me = '[FS::cust_main::Location]';
my $init = 0;
@@ -146,7 +146,7 @@ sub _upgrade_data {
# just in case someone still doesn't have these
if ( !$phone_type{$_}->phonetypenum ) {
$error = $phone_type{$_}->insert;
- die "error creating phone type '$_': $error";
+ die "error creating phone type '$_': $error" if $error;
}
}