Skip to content

Commit

Permalink
allow initial nation null val
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 2, 2024
1 parent bf1d135 commit d373a72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions php/src/LitSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ private function setVars(array $DATA)

public function __construct(array $DATA)
{

//set a few default values
$this->Year = (int)date("Y");

Expand All @@ -101,10 +100,6 @@ public function __construct(array $DATA)
}

$this->setVars($DATA);

/*if( $this->NationalCalendar !== null ) {
$this->updateSettingsByNation();
}*/
}

private function updateSettingsByNation(string $stagingURL)
Expand Down
2 changes: 1 addition & 1 deletion php/src/Utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static function buildDioceseOptions($MetaData, $NATION, $DIOCESE)
return [$options, $i ];
}

public static function buildNationOptions(array $nations, string $NATION, string $locale)
public static function buildNationOptions(array $nations, ?string $NATION, string $locale)
{
$options = '<option value="">---</option>';
foreach ($nations as $nationVal) {
Expand Down

0 comments on commit d373a72

Please sign in to comment.