diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-03-12 09:54:15 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-03-12 09:54:15 +0100 |
commit | 092c1c8c4c67fa97847fbdeb69808d3479499577 (patch) | |
tree | ed6039eb0e05b61d6baf682322e3a2d9038aee88 /Zotlabs | |
parent | 98541beee375918c4be97e9f163962d1cc55ba98 (diff) | |
download | volse-hubzilla-092c1c8c4c67fa97847fbdeb69808d3479499577.tar.gz volse-hubzilla-092c1c8c4c67fa97847fbdeb69808d3479499577.tar.bz2 volse-hubzilla-092c1c8c4c67fa97847fbdeb69808d3479499577.zip |
add extra firstpage check
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Admin/Site.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Module/Admin/Site.php b/Zotlabs/Module/Admin/Site.php index bfb9be8bd..6d5747380 100644 --- a/Zotlabs/Module/Admin/Site.php +++ b/Zotlabs/Module/Admin/Site.php @@ -39,6 +39,10 @@ class Site { $site_location = ((x($_POST,'site_location')) ? notags(trim($_POST['site_location'])) : ''); $frontpage = ((x($_POST,'frontpage')) ? notags(trim($_POST['frontpage'])) : ''); $firstpage = ((x($_POST,'firstpage')) ? notags(trim($_POST['firstpage'])) : 'profiles'); + // check value after trim + if(! $firstpage) { + $firstpage = 'profiles'; + } $mirror_frontpage = ((x($_POST,'mirror_frontpage')) ? intval(trim($_POST['mirror_frontpage'])) : 0); $directory_server = ((x($_POST,'directory_server')) ? trim($_POST['directory_server']) : ''); $allowed_sites = ((x($_POST,'allowed_sites')) ? notags(trim($_POST['allowed_sites'])) : ''); |