Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F802450
D509.id1317.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
Mon, Feb 24, 1:33 AM
Size
407 B
Mime Type
text/x-diff
Expires
Tue, Feb 25, 1:33 AM (12 h, 28 m)
Engine
blob
Format
Raw Data
Handle
575364
Attached To
D509: INP-1900 Ensure numeric parameter values inside "kUtil::Pounds2Kg" method
D509.id1317.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