Browse Source

Update user_id to id in user profile edition

Yannick Warnier 7 years ago
parent
commit
1444f08863
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/auth/profile.php

+ 1 - 1
main/auth/profile.php

@@ -685,7 +685,7 @@ if ($form->validate()) {
         $sql .= ", official_code = '".Database::escape_string($user_data['official_code'])."'";
     }
 
-    $sql .= " WHERE user_id  = '".api_get_user_id()."'";
+    $sql .= " WHERE id  = '".api_get_user_id()."'";
     Database::query($sql);
 
     if ($passwordWasChecked == false) {