Removed compilation warning in portal
This commit is contained in:
parent
b770784b50
commit
cc8cf3de4e
1 changed files with 1 additions and 2 deletions
|
@ -79,8 +79,7 @@ namespace WebsitePanel.Portal
|
||||||
public static int ParseInt(object val, int defaultValue)
|
public static int ParseInt(object val, int defaultValue)
|
||||||
{
|
{
|
||||||
int result = defaultValue;
|
int result = defaultValue;
|
||||||
// Perf: allow only non-empty values to go through
|
if (val != null && !String.IsNullOrEmpty(val.ToString()))
|
||||||
if (val != null && val != String.Empty)
|
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue