From 3ee1a4b0c7aab8abab1564179c02b3b6852cfc90 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 19 Nov 2017 13:29:45 +0100 Subject: fix problem with default value for userangeltype.supporter, fixes #352 --- includes/model/UserAngelTypes_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/model') diff --git a/includes/model/UserAngelTypes_model.php b/includes/model/UserAngelTypes_model.php index 0c413010..3a7508ee 100644 --- a/includes/model/UserAngelTypes_model.php +++ b/includes/model/UserAngelTypes_model.php @@ -177,8 +177,8 @@ function UserAngelType_delete($user_angeltype) function UserAngelType_create($user, $angeltype) { DB::insert(' - INSERT INTO `UserAngelTypes` (`user_id`, `angeltype_id`) - VALUES (?, ?) + INSERT INTO `UserAngelTypes` (`user_id`, `angeltype_id`, `supporter`) + VALUES (?, ?, FALSE) ', [ $user['UID'], -- cgit v1.2.3-70-g09d2