summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-19 12:03:29 +0100
committermsquare <msquare@notrademark.de>2017-11-19 12:03:29 +0100
commit4eedad6c897be81ef13a3fce155fc5408ed71ce5 (patch)
tree7f90821c1d3a9b2cc1089014d5b0c7ed90091fe3
parentf9ab2697587911a2f96f82e8846d33925c3abdf1 (diff)
fix problem with default values on registration
-rw-r--r--includes/pages/guest_login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php
index f7c191e4..9e71e180 100644
--- a/includes/pages/guest_login.php
+++ b/includes/pages/guest_login.php
@@ -256,7 +256,7 @@ function guest_register()
$user_angel_types_info = [];
foreach ($selected_angel_types as $selected_angel_type_id) {
DB::insert(
- 'INSERT INTO `UserAngelTypes` (`user_id`, `angeltype_id`) VALUES (?, ?)',
+ 'INSERT INTO `UserAngelTypes` (`user_id`, `angeltype_id`, `supporter`) VALUES (?, ?, FALSE)',
[$user_id, $selected_angel_type_id]
);
$user_angel_types_info[] = $angel_types[$selected_angel_type_id];