1
Bug Fixes & Patches / Re: [1.7 / 1.7.1] Media directory size shows negative value (ACP)
« on: April 16, 2010, 04:26:38 AM »For PHP versions 4 through 4.2.0, if you replace:Excellent and thank you for all of your effort!Code: [Select]$file_size = intval($file_size);
with:Code: [Select]$file_size = floatval($file_size);
it will give you the correct size.
Chicago Show
I have not tested with all versions of PHP but you could also replace:Code: [Select]$file_size = intval($file_size);
with a float typecast:Code: [Select]$file_size = (float)($file_size);
and get the correct result.
I have tested both methods and they both return the proper size.