1
0

deboggage

This commit is contained in:
Daniel Tartavel 2019-11-30 02:04:39 +01:00
parent b3358c7534
commit 20a7b29d05

View File

@ -60,7 +60,7 @@ while ($user = $doldb->result->fetch_assoc())
echo "\ndifférent\n##############################\n" . $user['fk_user_valid'] . "!=" . $status . "\n"; echo "\ndifférent\n##############################\n" . $user['fk_user_valid'] . "!=" . $status . "\n";
if ( $insert ) 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 }else
{ {
$query = "UPDATE oc_preferences SET configvalue = '" . $user["fk_user_valid"] ."' WHERE userid='" . $user["login"] . "' AND appid='core' AND configkey='enabled'" ; $query = "UPDATE oc_preferences SET configvalue = '" . $user["fk_user_valid"] ."' WHERE userid='" . $user["login"] . "' AND appid='core' AND configkey='enabled'" ;