Procházet zdrojové kódy

fixed empty values in updateItem from TableAcl

Piotr Labudda před 9 roky
rodič
revize
2deeb640ea
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      SE/se-lib/TableAcl.php

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

@@ -1455,7 +1455,7 @@ class TableAcl {
 			if (!$this->isAllowed($kID, 'W', $itemOld)) {
 			if (!$this->isAllowed($kID, 'W', $itemOld)) {
 				continue;
 				continue;
 			}
 			}
-			if (isset($itemPatch[$vFieldName])) {
+			if (array_key_exists($vFieldName, $itemPatch)) {
 				if (!$this->isAllowed($kID, 'R', $itemOld) && '*****' == $itemPatch[$vFieldName]) {
 				if (!$this->isAllowed($kID, 'R', $itemOld) && '*****' == $itemPatch[$vFieldName]) {
 					// default value for perms 'W' without 'R' is '*****'
 					// default value for perms 'W' without 'R' is '*****'
 				}
 				}