Permalink
Browse files

MDL-21174 - exclude deleted users in bulk upload of user profile pict…

…ures.
  • Loading branch information...
1 parent 5eb17ea commit f3a1b0ce39811b4fb22e1d18698139107b3e6932 @rwijaya rwijaya committed Jan 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/uploadpicture.php
View
@@ -208,8 +208,8 @@ function process_file ($file, $userfield, $overwrite) {
strlen($basename) -
strlen($extension) - 1);
- // userfield names are safe, so don't quote them.
- if (!($user = get_record('user', $userfield, addslashes($uservalue)))) {
+ // userfield names are safe, so don't quote them.
+ if (!($user = get_record('user', $userfield, addslashes($uservalue),'deleted',0))) {
$a = new Object();
$a->userfield = clean_param($userfield, PARAM_CLEANHTML);
$a->uservalue = clean_param($uservalue, PARAM_CLEANHTML);

0 comments on commit f3a1b0c

Please sign in to comment.