Hotfix PHP 8 Device/Detail.php

This commit is contained in:
Frank Schubert
2025-12-04 20:18:05 +01:00
parent cfc3dc140e
commit b0a64b8184

View File

@@ -367,7 +367,7 @@ foreach ($devicesall as $deviceall) {
<h4 class="float-left">Config Backups</h4>
<span><i class="fa-sharp fa-solid fa-arrows-spin fa-backup-check <?= ($devices->backup_check) ? '' : 'fa-backup-check-uncheck' ?>"
title=" <?= ($devices->backup_check) ? 'Backup Check aktiv' : 'Backup Check inaktiv' ?>"></i></span>
<?php if ($devices->devicetype->devicemanufactor->config_backup > count()): ?>
<?php if ($devices->devicetype->devicemanufactor->config_backup > 0): ?>
<span><i title="Switch config" class="fa-light fa-rectangle-code code-ico"
data-toggle="modal" data-target="#configCode"></i></span>
<?php endif;
@@ -408,7 +408,7 @@ foreach ($devicesall as $deviceall) {
</div>
</div>
<?php
if ($devicesconfig->success == "true" && $devicesconfig->data > count()) {
if ($devicesconfig->success == "true" && $devicesconfig->data > 0) {
?>
<div>
<table class="table table-sm">
@@ -711,7 +711,7 @@ foreach ($devicesall as $deviceall) {
</div>
</div>
</div>
<?php if ($devices->devicetype->devicemanufactor->config_backup > count()):
<?php if ($devices->devicetype->devicemanufactor->config_backup > 0):
$year = date("Y", time());
$month = date("n", time());