diff --git a/nconnector.php b/nconnector.php index 591f144..594437e 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 (userid, appid, configkey, configvalue) VALUES ( '" . $ncuser["uid"] . "', 'core', 'enabled', '" . $user["fk_user_valid"] . "' ) "; + $query = "INSERT INTO oc_preferences (userid, appid, configkey, configvalue) VALUES ( '" . $ncuser["uid"] . "', 'core', 'enabled', '" . ($user["fk_user_valid"]==1?"true":"false") . "' ) "; }else { $query = "UPDATE oc_preferences SET configvalue = '" . $user["fk_user_valid"] ."' WHERE userid='" . $user["login"] . "' AND appid='core' AND configkey='enabled'" ;