From b3358c753417ff2067570067c760431c95ae4a8b Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sat, 30 Nov 2019 01:12:09 +0100 Subject: [PATCH] debuggage --- nconnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nconnector.php b/nconnector.php index 703922a..591f144 100755 --- a/nconnector.php +++ b/nconnector.php @@ -60,7 +60,7 @@ while ($user = $doldb->result->fetch_assoc()) echo "\ndifférent\n##############################\n" . $user['fk_user_valid'] . "!=" . $status . "\n"; if ( $insert ) { - $query = "INSERT INTO oc_preferences (configvalue) VALUES ( '" . $user["fk_user_valid"] . "' ) "; + $query = "INSERT INTO oc_preferences (userid, appid, configkey, configvalue) VALUES ( '" . $ncuser["uid"] . "', 'core', 'enabled', '" . $user["fk_user_valid"] . "' ) "; }else { $query = "UPDATE oc_preferences SET configvalue = '" . $user["fk_user_valid"] ."' WHERE userid='" . $user["login"] . "' AND appid='core' AND configkey='enabled'" ;