Skip to content

Commit 1612510

Browse files
committed
fix: link modulo Aggiornamenti
1 parent 0d733a8 commit 1612510

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/aggiornamenti/src/UpdateHook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function response()
4848
$update = null;
4949
}
5050

51-
$module = Module::where('name', 'Aggiornamento')->first();
52-
$link = base_path().'/controller.php?id_module='.$module->id;
51+
$module = Module::where('name', 'Aggiornamenti')->first();
52+
$link = !empty($module) ? base_path().'/controller.php?id_module='.$module->id : '#';
5353

5454
$message = tr("E' disponibile la versione _VERSION_ del gestionale", [
5555
'_VERSION_' => $update,

0 commit comments

Comments
 (0)