diff --git a/nconnector.php b/nconnector.php index 5a2a69d..8d96869 100755 --- a/nconnector.php +++ b/nconnector.php @@ -53,7 +53,7 @@ while ($user = $doldb->result->fetch_assoc()) } if ( $user["fk_user_valid"] != $status ) { - $query = "UPDATE oc_preferences SET configvalue = '" . $user["fk_user_valid"] ."' WHERE user_id='" . $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'" ; $ncdb->query( $query ); echo $query; }