aboutsummaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/index.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/settings/index.php b/settings/index.php
index 7bf02273a..736dfe4c7 100644
--- a/settings/index.php
+++ b/settings/index.php
@@ -9,17 +9,17 @@
*/
// Get the Elgg framework
- require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
-
- if (!page_owner())
- set_page_owner($_SESSION['guid']);
-
- // Make sure we don't open a security hole ...
- if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) {
- set_page_owner($_SESSION['guid']);
- }
-
+ require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
+
+ if (!page_owner())
+ set_page_owner($_SESSION['guid']);
+
+ // Make sure we don't open a security hole ...
+ if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) {
+ set_page_owner($_SESSION['guid']);
+ }
+
// Forward to the user settings
- forward('pg/settings/user/' . page_owner_entity()->username . "/");
+ forward('pg/settings/user/' . page_owner_entity()->username . "/");
?> \ No newline at end of file