diff --git a/controllers/OrderController.php b/controllers/OrderController.php index 46a6c06..e30a781 100755 --- a/controllers/OrderController.php +++ b/controllers/OrderController.php @@ -234,7 +234,7 @@ ) )) { OrderProduct::saveItems(\Yii::$app->request->post('OrderProduct'), $id); - if ($model->paid and class_exists(Incust::className())) { + if ($model->paid and class_exists(Incust::className()) and $model->bonuses_add == null) { /** * @var \backend\incust\components\Incust $incust; */ -- libgit2 0.21.4