Skip to content

Commit

Permalink
Fix PHP 8 error: Cannot assign null to property Event::$_dueDate
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed Apr 12, 2024
1 parent 35cd588 commit 48cb0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function __construct ( $name, $description, $date, $time, $id, $extForID,
$this->_calType = $calType;
$this->_location = $location;
$this->_url = $url;
$this->_dueDate = $dueDate;
$this->_dueDate = empty($dueDate) ? '' : $dueDate;
$this->_dueTime = sprintf ( "%06d", $dueTime );
$this->_due = $dueDate . sprintf ( "%06d", $dueTime );
$this->_percent = $percent;
Expand Down

0 comments on commit 48cb0cf

Please sign in to comment.