aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/languages/en.php1
-rw-r--r--mod/profile/views/default/profile/edit.php4
2 files changed, 3 insertions, 2 deletions
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 @@
<?php
//var_export($vars['profile']);
- if (is_array($vars['profile']) && sizeof($vars['profile']) > 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) {
?>