Skip to content

Commit

Permalink
Update controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cadyrov authored Mar 12, 2020
1 parent 5133d4b commit 19db114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crud/default/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function actionDelete()
return self::error('Model deleted');
}
$model->deleted_at = date('Y-m-d H:i:s');
if ($model->update()) {';
if ($model->update()) {
<?php } else { ?>
if ($model->delete()) {
<?php } ?>
Expand Down

0 comments on commit 19db114

Please sign in to comment.