From e231b7079e97f4c4a7d48670a63176f3b62158b9 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 23 May 2008 16:21:53 +0000 Subject: You can now edit your profile again .. git-svn-id: https://code.elgg.org/elgg/trunk@700 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/languages/en.php | 1 + mod/profile/views/default/profile/edit.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/languages/en.php b/mod/profile/languages/en.php index 6227f6657..e83e22cba 100644 --- a/mod/profile/languages/en.php +++ b/mod/profile/languages/en.php @@ -42,6 +42,7 @@ * Error messages */ + 'profile:noaccess' => "You do not have permission to edit this profile.", 'profile:notfound' => "Sorry; we could not find the specified profile.", 'profile:cantedit' => "Sorry; you do not have permission to edit this profile.", 'profile:icon:notfound' => "Sorry; there was a problem uploading your profile icon.", diff --git a/mod/profile/views/default/profile/edit.php b/mod/profile/views/default/profile/edit.php index 685793bff..5ccfd9ec4 100644 --- a/mod/profile/views/default/profile/edit.php +++ b/mod/profile/views/default/profile/edit.php @@ -20,8 +20,8 @@ 0) - foreach($vars['profile'] as $shortname => $valtype) { + if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0) + foreach($vars['config']->profile as $shortname => $valtype) { ?> -- cgit v1.2.3