Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F871646
D509.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, May 8, 12:07 AM
Size
407 B
Mime Type
text/x-diff
Expires
Fri, May 9, 12:07 AM (8 h, 11 m)
Engine
blob
Format
Raw Data
Handle
616565
Attached To
D509: INP-1900 Ensure numeric parameter values inside "kUtil::Pounds2Kg" method
D509.id.diff
View Options
Index: core/kernel/globals.php
===================================================================
--- core/kernel/globals.php
+++ core/kernel/globals.php
@@ -387,7 +387,7 @@
*/
public static function Pounds2Kg($pounds, $ounces = 0.00)
{
- return round(($pounds + ($ounces / 16)) * self::POUND_TO_KG, 5);
+ return round(((float)$pounds + ((float)$ounces / 16)) * self::POUND_TO_KG, 5);
}
/**
Event Timeline
Log In to Comment