From 1fc00c333c278abbb94a21ce198eb7578e82b3a0 Mon Sep 17 00:00:00 2001 From: Yarik Date: Wed, 14 Jun 2017 16:32:38 +0300 Subject: [PATCH] Order print --- views/order/print.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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