PriceCategoryToFloat returns 0 if string empty, null

This commit is contained in:
Garry Newman 2016-11-10 10:06:10 +00:00
parent dec523602d
commit 5c62314f96

View File

@ -163,6 +163,9 @@ internal void Update()
/// </summary> /// </summary>
public static float PriceCategoryToFloat( string price ) public static float PriceCategoryToFloat( string price )
{ {
if ( string.IsNullOrEmpty( price ) )
return 0.0f;
price = price.Replace( "1;VLV", "" ); price = price.Replace( "1;VLV", "" );
int iPrice = 0; int iPrice = 0;