Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2898240
D25209.1737252868.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
537 B
Referenced Files
None
Subscribers
None
D25209.1737252868.diff
View Options
diff --git a/src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php b/src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php
--- a/src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php
+++ b/src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php
@@ -188,7 +188,7 @@
$g = $rgba[1];
$b = $rgba[2];
$a = $rgba[3];
- $a = (1 - $a) * 255;
+ $a = round(((1 - $a) * 255), 0);
return ($a << 24) | ($r << 16) | ($g << 8) | $b;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 02:14 (6 h, 14 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1131010
Default Alt Text
D25209.1737252868.diff (537 B)
Attached To
Mode
D25209: Fix PHP 8.1 "implicit conversion from float to int" exception on certain avatar colors which blocks rendering user pages
Attached
Detach File
Event Timeline
Log In to Comment