Sfoglia il codice sorgente

Fix bug in add nested group (UserStorageDB)

Piotr Labudda 11 anni fa
parent
commit
5a43881df4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      SE/se-lib/UserStorageDB.php

+ 1 - 1
SE/se-lib/UserStorageDB.php

@@ -256,7 +256,7 @@ class UserStorageDB extends UserStorageBase {
 	public function addNestedGroup($groupID, $nestedGroupID) {
 		if (!$this->_db) return null;
 		if ($groupID <= 0) return null;
-		if ($nestedGroupID) return null;
+		if ($nestedGroupID <= 0) return null;
 		return $this->_setGroupConnection($groupID, $nestedGroupID);
 	}