PHP 8.1 fixes; fixed adding users

This commit is contained in:
Frank Schubert
2022-08-09 16:08:04 +02:00
parent e055181e9f
commit 31241f79cf
60 changed files with 85 additions and 57 deletions

View File

@@ -119,8 +119,11 @@ class PipeworkController extends mfBaseController {
$networks[$b->network->name][$b->id] = $b;
}
}
$building = reset(reset($networks));
if(is_array($networks) && count($networks)) {
$building = reset(reset($networks));
} else {
$building = [];
}
$item_colspan = 0;
$i = 0;