Skip to content
Browse files

MDL-17143 Using existing $user->id instead of unexisting $userid

  • Loading branch information...
1 parent 843d264 commit 86b4781cb4efedaefe8e1f0c1c1db74fc32c2434 stronk7 committed Nov 18, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/edit.html
View
2 user/edit.html
@@ -253,7 +253,7 @@
<?php } ?>
<?php
$can_edit_user = isadmin();
-if (empty($user->description) && !empty($CFG->profilesforenrolledusersonly) && !record_exists('user_students', 'userid', $userid)&& !record_exists('user_teachers', 'userid', $userid) && !$can_edit_user) {
+if (empty($user->description) && !empty($CFG->profilesforenrolledusersonly) && !record_exists('user_students', 'userid', $user->id)&& !record_exists('user_teachers', 'userid', $user->id) && !$can_edit_user) {
// prevent user editing description
} else {
?>

0 comments on commit 86b4781

Please sign in to comment.
Something went wrong with that request. Please try again.