summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/pikul_cost.tag6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/pikul_cost.tag b/config/pikul_cost.tag
index 60fccca..da09040 100644
--- a/config/pikul_cost.tag
+++ b/config/pikul_cost.tag
@@ -18,9 +18,9 @@ sub {
}
use Pikul;
Pikul::init($company, \@provisions);
- my $cost = Pikul::cost($origin, $Tag->query({sql => "SELECT code FROM $table WHERE district='"
- . $district . "' AND city='" . $city . "' AND province='" . $province . "'",
- wantarray => 1})->[0]->[0], $weight, $service);
+ my $cost = Pikul::cost($origin, $Tag->query({sql => "SELECT code FROM $table WHERE \
+ district='$district' AND city='$city' AND province='$province'",
+ wantarray => 1})->[0]->[0] || '', $weight, $service);
Pikul::cleanup();
return $cost;
}