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 ed96509..88f960e 100644
--- a/config/pikul_cost.tag
+++ b/config/pikul_cost.tag
@@ -13,9 +13,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;
}