瀏覽代碼

fixed empty values in updateItem from TableAcl

Piotr Labudda 9 年之前
父節點
當前提交
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 '*****'
 				}