equal
deleted
inserted
replaced
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 = ''; |