mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
Fix string compares
This commit is contained in:
@@ -121,7 +121,7 @@ public class User extends DataUnit implements Cloneable {
|
|||||||
String defaultGroupName = getDataSource().getDefaultGroup().getName();
|
String defaultGroupName = getDataSource().getDefaultGroup().getName();
|
||||||
// if we are not in the default group
|
// if we are not in the default group
|
||||||
// or we are in the default group and the move is to a different group.
|
// or we are in the default group and the move is to a different group.
|
||||||
boolean notify = (this.group != defaultGroupName) || ((this.group == defaultGroupName) && (group.getName() != defaultGroupName)) ;
|
boolean notify = (!this.group.equalsIgnoreCase(defaultGroupName)) || ((this.group.equalsIgnoreCase(defaultGroupName)) && (!group.getName().equalsIgnoreCase(defaultGroupName))) ;
|
||||||
this.group = group.getName();
|
this.group = group.getName();
|
||||||
flagAsChanged();
|
flagAsChanged();
|
||||||
if (GroupManager.isLoaded()) {
|
if (GroupManager.isLoaded()) {
|
||||||
|
Reference in New Issue
Block a user