Skip to content

Commit

Permalink
Merge pull request #137 from seboettg/release/2.5.1
Browse files Browse the repository at this point in the history
Release/2.5.1
  • Loading branch information
seboettg authored Aug 5, 2022
2 parents e0f8f49 + ceeef4b commit 3fbaaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rendering/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function render($data, $citationNumber = null): string
*/
public static function ordinal($num): string
{
if (($num / 10) % 10 == 1) {
if ((int) ($num / 10) % 10 == 1) {
$ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal')->single;
} elseif ($num % 10 == 1) {
$ordinalSuffix = CiteProc::getContext()->getLocale()->filter('terms', 'ordinal-01')->single;
Expand Down

0 comments on commit 3fbaaac

Please sign in to comment.