Fixes U4-2822 Datepicker throws "Specified cast is not valid" when saving through API

This commit is contained in:
Morten Christensen
2013-09-18 10:06:08 +02:00
parent 95df28bf64
commit dc1a67bfa2
2 changed files with 13 additions and 6 deletions

View File

@@ -65,12 +65,12 @@ namespace Umbraco.Core.Models.Rdbms
return Date.Value;
}
if(!string.IsNullOrEmpty(VarChar))
if(string.IsNullOrEmpty(VarChar) == false)
{
return VarChar;
}
if(!string.IsNullOrEmpty(Text))
if(string.IsNullOrEmpty(Text) == false)
{
return Text;
}