Skip to content

Commit

Permalink
use ufo operator for comparison. replaces #81
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Dec 20, 2023
1 parent ec6e142 commit a2a8c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DokuWikiFarmCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ protected function getAnimalNamesForHost($host) {
function ($a, $b) {
$ret = strlen($b) - strlen($a);
if($ret != 0) return $ret;
return $a > $b;
return $a <=> $b;
}
);
return $animals;
Expand Down

0 comments on commit a2a8c90

Please sign in to comment.