aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/sitepages/actions/addfront.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/sitepages/actions/addfront.php b/mod/sitepages/actions/addfront.php
index 8187862a7..00b04dbcb 100644
--- a/mod/sitepages/actions/addfront.php
+++ b/mod/sitepages/actions/addfront.php
@@ -16,7 +16,7 @@ $logged_in_content = get_input('logged_in_content', '', FALSE);
$logged_out_content = get_input('logged_out_content', '', FALSE);
// do some error checking to make sure you can't lock yourself out of your front page.
-if (FALSE === strpos($logged_out_content, '[loginbox')) {
+if (FALSE === strpos($logged_out_content, '[loginbox]')) {
register_error(elgg_echo('sitepages:error:no_login'));
forward($_SERVER['HTTP_REFERER']);
}