Skip to content

Commit

Permalink
fixed: AdvancedSettings returns DefaultValue if value has set to "Str…
Browse files Browse the repository at this point in the history
…ing.Empty"
  • Loading branch information
DanCooper committed Aug 13, 2017
1 parent af9d3de commit 9457867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EmberAPI/clsAPIAdvancedSettings.vb
Expand Up @@ -119,10 +119,10 @@ Public Class AdvancedSettings

If cContent = Enums.ContentType.None Then
Dim v = From e In _AdvancedSettings.Setting.Where(Function(f) f.Name = key AndAlso f.Section = Assembly)
Return If(v(0) Is Nothing OrElse v(0).Value Is Nothing, defvalue, v(0).Value.ToString)
Return If(v(0) Is Nothing, defvalue, If(v(0).Value Is Nothing, String.Empty, v(0).Value.ToString))
Else
Dim v = From e In _AdvancedSettings.Setting.Where(Function(f) f.Name = key AndAlso f.Section = Assembly AndAlso f.Content = cContent)
Return If(v(0) Is Nothing OrElse v(0).Value Is Nothing, defvalue, v(0).Value.ToString)
Return If(v(0) Is Nothing, defvalue, If(v(0).Value Is Nothing, String.Empty, v(0).Value.ToString))
End If

Catch ex As Exception
Expand Down

0 comments on commit 9457867

Please sign in to comment.