plugins/admin/UserManager.php
changeset 928 e2971f4a3123
parent 832 7152ca0a0ce9
child 937 b174cdb75bec
equal deleted inserted replaced
927:e964577b5fa9 928:e2971f4a3123
   354           $update_sql = '';
   354           $update_sql = '';
   355           
   355           
   356           foreach ( $to_update_users as $key => $unused_crap )
   356           foreach ( $to_update_users as $key => $unused_crap )
   357           {
   357           {
   358             $value =& $to_update_users[$key];
   358             $value =& $to_update_users[$key];
   359             $value = $db->escape($value);
   359             if ( $value !== 'NULL' )
   360             $update_sql .= ( empty($update_sql) ? '' : ',' ) . "$key='$value'";
   360               $value = "'" . $db->escape($value) . "'";
       
   361  
       
   362             $update_sql .= ( empty($update_sql) ? '' : ',' ) . "$key=$value";
   361           }
   363           }
   362           
   364           
   363           $update_sql = 'UPDATE '.table_prefix."users SET $update_sql WHERE user_id=$user_id;";
   365           $update_sql = 'UPDATE '.table_prefix."users SET $update_sql WHERE user_id=$user_id;";
   364           
   366           
   365           $update_sql_extra = '';
   367           $update_sql_extra = '';