Skip to content

Commit

Permalink
Merge pull request #299 from PixelTux/installation
Browse files Browse the repository at this point in the history
Gestione null di gas durante la prima installazione
  • Loading branch information
madbob authored Nov 17, 2024
2 parents eddf5c2 + d059041 commit b842c4b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/app/Helpers/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ function allPermissions()
*/
try {
$gas = currentAbsoluteGas();
$gas = $gas->fresh();

if ($gas->multigas) {
$ret['App\Gas']['gas.multi'] = _i('Amministrare la modalità Multi-GAS su questa istanza');
if (isset($gas)) {
$gas = $gas->fresh();

if ($gas->multigas) {
$ret['App\Gas']['gas.multi'] = _i('Amministrare la modalità Multi-GAS su questa istanza');
}
}
}
catch(\Exception $e) {
Expand Down

0 comments on commit b842c4b

Please sign in to comment.