From cc8cf3de4ea702e202a7a98ebdfad1b3de142cf6 Mon Sep 17 00:00:00 2001 From: feodor_fitsner Date: Thu, 8 Mar 2012 09:24:09 -0800 Subject: [PATCH] Removed compilation warning in portal --- .../DesktopModules/WebsitePanel/Code/Framework/Utils.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs index 17abd1ae..aa2524d2 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/Code/Framework/Utils.cs @@ -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 {