Update application/views/dashboard/index.php

Adding check to ensure variables solar_banconditions and solar_solardata are defined; this will be used when the solar panel is disabled in user preferences.

Co-authored-by: Joerg (DJ7NT) <int2001@users.noreply.github.com>
This commit is contained in:
Szymon Porwolik
2025-09-23 10:28:57 +02:00
committed by GitHub
parent ad528539b4
commit a8e086acd6

View File

@@ -457,7 +457,7 @@ function getDistance($distance) {
</table>
<?php } ?>
<?php if($solar_bandconditions && $solar_solardata){ ?>
<?php if ((($solar_bandconditions ?? '') != '') && (($solar_solardata ?? '') != '')){ ?>
<!-- Solar Data -->
<table class="table table-striped border-top">
<tr class="titles">