Просмотр исходного кода

fixed empty values in updateItem from TableAcl

Piotr Labudda 9 лет назад
Родитель
Сommit
2deeb640ea
1 измененных файлов с 1 добавлено и 1 удалено
  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)) {
 				continue;
 			}
-			if (isset($itemPatch[$vFieldName])) {
+			if (array_key_exists($vFieldName, $itemPatch)) {
 				if (!$this->isAllowed($kID, 'R', $itemOld) && '*****' == $itemPatch[$vFieldName]) {
 					// default value for perms 'W' without 'R' is '*****'
 				}