From 7068a39af7928159a7d36afa28ccb76b68f8610d Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 3 Mar 2021 21:18:52 -0500 Subject: [PATCH] Fixed profiles failing to heat when no HDD or CDD --- api/profile.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/api/profile.php b/api/profile.php index d7d7e7d..ea0e774 100644 --- a/api/profile.php +++ b/api/profile.php @@ -943,7 +943,10 @@ class profile extends cora\api { } // Runtime per degree day - if($profile['degree_days']['heat'] !== null) { + if( + $profile['degree_days']['heat'] !== null && + $profile['degree_days']['heat'] > 0 + ) { if( $system_type_heat !== null && $system_type_heat !== 'none' @@ -955,7 +958,10 @@ class profile extends cora\api { } } - if($profile['degree_days']['cool'] !== null) { + if( + $profile['degree_days']['cool'] !== null && + $profile['degree_days']['cool'] > 0 + ) { if( $system_type_cool !== null && $system_type_cool !== 'none'