Merge pull request #1302 from leigh-pointer/AddPageWarning

Check now displays warning instead of an Error
This commit is contained in:
Shaun Walker 2021-04-30 07:32:12 -04:00 committed by GitHub
commit c02e83547b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,7 +288,7 @@
Page page = null;
try
{
if (_name != string.Empty && !string.IsNullOrEmpty(_themetype) && _containertype != "-")
if (!string.IsNullOrEmpty(_name) && !string.IsNullOrEmpty(_themetype) && _containertype != "-")
{
page = new Page();
page.SiteId = PageState.Page.SiteId;