Skip to content

Commit

Permalink
better bool cast
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Apr 5, 2024
1 parent 98e4204 commit f4bc821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/LitSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct( array $DATA ) {
$this->CalendarType = CalendarType::isValid( strtoupper( $value ) ) ? strtoupper( $value ) : CalendarType::LITURGICAL;
break;
case "ETERNALHIGHPRIEST":
$this->EternalHighPriest = (bool)$value;
$this->EternalHighPriest = filter_var( $value, FILTER_VALIDATE_BOOLEAN);
break;
}
}
Expand Down

0 comments on commit f4bc821

Please sign in to comment.