Skip to content

Commit

Permalink
fix/save-structure (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielChagas14 authored Nov 28, 2024
1 parent 75b9f79 commit 4bd4e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ public function actionSaveUnities()

} elseif ($hasFinalRecovery === false && $finalRecovery["operation"] === "delete") {
$recoveryUnity = GradeUnity::model()->find('id = :id', array(':id' => $finalRecovery["id"]));
$recoveryUnity->delete();
$recoveryUnity?->delete();
echo json_encode(["valid" => true]);
Yii::app()->end();
}
Expand Down

0 comments on commit 4bd4e2d

Please sign in to comment.