Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…ures.
  • Loading branch information...
commit f3a1b0ce39811b4fb22e1d18698139107b3e6932 1 parent 5eb17ea
authored January 11, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  admin/uploadpicture.php
4  admin/uploadpicture.php
@@ -208,8 +208,8 @@ function process_file ($file, $userfield, $overwrite) {
208 208
                         strlen($basename) -
209 209
                         strlen($extension) - 1);
210 210
 
211  
-    // userfield names are safe, so don't quote them.
212  
-    if (!($user = get_record('user', $userfield, addslashes($uservalue)))) {
  211
+    // userfield names are safe, so don't quote them.    
  212
+    if (!($user = get_record('user', $userfield, addslashes($uservalue),'deleted',0))) {
213 213
         $a = new Object();
214 214
         $a->userfield = clean_param($userfield, PARAM_CLEANHTML);
215 215
         $a->uservalue = clean_param($uservalue, PARAM_CLEANHTML);

0 notes on commit f3a1b0c

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