Removed compilation warning in portal

This commit is contained in:
feodor_fitsner 2012-03-08 09:24:09 -08:00
parent b770784b50
commit cc8cf3de4e

View file

@ -79,8 +79,7 @@ namespace WebsitePanel.Portal
public static int ParseInt(object val, int defaultValue)
{
int result = defaultValue;
// Perf: allow only non-empty values to go through
if (val != null && val != String.Empty)
if (val != null && !String.IsNullOrEmpty(val.ToString()))
{
try
{