Merge pull request #2334 from Strubbl/patch-2

Update HashidService.php
pull/2137/head
daniel 5 years ago committed by GitHub
commit 2e8ba94883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ class HashidService {
$shortcode = ''; $shortcode = '';
while($id) { while($id) {
$id = ($id - ($r = $id % $base)) / $base; $id = ($id - ($r = $id % $base)) / $base;
$shortcode = $cmap{$r} . $shortcode; $shortcode = $cmap[$r] . $shortcode;
}; };
return $shortcode; return $shortcode;
}); });

Loading…
Cancel
Save