Commit 57fe2b2eae1b8eb0924a22eea67ae387b6047bab
1 parent
560cdc14
incust
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
controllers/OrderController.php
... | ... | @@ -234,7 +234,7 @@ |
234 | 234 | ) |
235 | 235 | )) { |
236 | 236 | OrderProduct::saveItems(\Yii::$app->request->post('OrderProduct'), $id); |
237 | - if ($model->paid and class_exists(Incust::className()) and $model->bonuses_add == null) { | |
237 | + if ($model->paid and class_exists(Incust::className()) and $model->bonuses_add == null and $order->incust) { | |
238 | 238 | /** |
239 | 239 | * @var \backend\incust\components\Incust $incust; |
240 | 240 | */ | ... | ... |