summaryrefslogtreecommitdiff
path: root/app/User
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-29 21:45:28 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-29 21:45:28 -0400
commit1aab14212729c561244196de30243fe920dd0d8b (patch)
tree8d858cd0ab06e459fa214979dcc72798401867de /app/User
parent6c24ec578470ef9aa788c8c879ab689814ab22be (diff)
Fixed identical background color for LetterAvatar on 32bits platforms
Diffstat (limited to 'app/User')
-rw-r--r--app/User/Avatar/LetterAvatarProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/User/Avatar/LetterAvatarProvider.php b/app/User/Avatar/LetterAvatarProvider.php
index b7a95f41..727f9109 100644
--- a/app/User/Avatar/LetterAvatarProvider.php
+++ b/app/User/Avatar/LetterAvatarProvider.php
@@ -142,7 +142,7 @@ class LetterAvatarProvider extends Base implements AvatarProviderInterface
// Make hash more sensitive for short string like 'a', 'b', 'c'
$str .= 'x';
- $max = intval(9007199254740991 / $seed2);
+ $max = intval(PHP_INT_MAX / $seed2);
for ($i = 0, $ilen = mb_strlen($str, 'UTF-8'); $i < $ilen; $i++) {
if ($hash > $max) {