diff --git a/views/order/print.php b/views/order/print.php index 6dc88cb..cf2c7fa 100755 --- a/views/order/print.php +++ b/views/order/print.php @@ -90,7 +90,7 @@ use yii\widgets\DetailView; ], [ 'attribute' => 'shipping_by', - 'value' => $order->shipping_by?function() use($order) { + 'value' => $order->shipping_by?(function() use($order) { switch ($order->shipping_by) { case 1: return 'Отправитель'; @@ -100,7 +100,7 @@ use yii\widgets\DetailView; break; } return null; - }:null, + })():null, ], [ 'attribute' => 'city', -- libgit2 0.21.4