Skip to content

Commit

Permalink
Fix: Parameter #1 $string of function str_pad expects string, int given
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Oct 22, 2024
1 parent b70ef88 commit 48244f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/core/classes/class-calendars.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ public function get_yahoo_calendar_link(): string {
$duration = ( ( strtotime( $diff_end ) - strtotime( $diff_start ) ) / 60 / 60 );
$full = intval( $duration );
$fraction = ( $duration - $full );
$hours = str_pad( intval( $duration ), 2, '0', STR_PAD_LEFT );
$minutes = str_pad( intval( $fraction * 60 ), 2, '0', STR_PAD_LEFT );
$hours = str_pad( strval( $duration ), 2, '0', STR_PAD_LEFT );
$minutes = str_pad( strval( $fraction * 60 ), 2, '0', STR_PAD_LEFT );
$venue = $event->get_venue_information();
$location = $venue['name'];
$description = $event->get_calendar_description();
Expand Down

0 comments on commit 48244f6

Please sign in to comment.