Skip to content

Commit

Permalink
Merge pull request #11 from addyh/fix-undefined-variable-hours-left
Browse files Browse the repository at this point in the history
Fix undefined variable $hours_left
  • Loading branch information
XjSv authored Apr 10, 2024
2 parents 47c2a02 + 5ac38c5 commit d87bc2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/class.cooked-measurements.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ public static function time_format( $minutes, $format = 'default' ){
endif;
else:
$days = floor( $minutes / 24 / 60 );
$hours_left = 0;
$minutes_left = $minutes - ( $days * 24 * 60 );
if ( $minutes_left > 60 ):
$hours_left = floor( $minutes_left / 60 );
Expand Down

0 comments on commit d87bc2a

Please sign in to comment.