deboggage
This commit is contained in:
parent
b3358c7534
commit
20a7b29d05
@ -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'" ;
|
||||||
|
Reference in New Issue
Block a user