Skip to content

Commit 225469e

Browse files
committed
Fix CS
1 parent 7514049 commit 225469e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/GaletteAuto/Controllers/Crud/ModelsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function edit(Request $request, Response $response, ?int $id = null, stri
200200
if ($action === 'edit') {
201201
// initialize model structure with database values
202202
$model->load($model_id);
203-
if ($model->id == '') {
203+
if (!$model->id) {
204204
//not possible to load, exit
205205
throw new \RuntimeException('Model does not exists!');
206206
}

0 commit comments

Comments
 (0)