Browse Source

Fixes user ID not being set.

Alan Lam 8 năm trước cách đây
mục cha
commit
47f5ae06c6
1 tập tin đã thay đổi với 1 bổ sung và 0 xóa
  1. 1 0
      controllers/address_add.php

+ 1 - 0
controllers/address_add.php

@@ -15,6 +15,7 @@ if($submit) {
 
 		$form_exception = new FormException;
 
+		$user_address->user_id = Core::$user->id;
 		$user_address->name = http::value("name", "trim");
 		$user_address->postal_code = http::value("postal_code", "trim");