This commit is contained in:
2021-12-17 04:57:46 +08:00
parent 154d9d74d6
commit 0d64ef7ac4
+3 -2
View File
@@ -165,8 +165,9 @@ class Context extends BaseContext
if (!isset(static::$_contents[$id])) { if (!isset(static::$_contents[$id])) {
return false; return false;
} }
if (!empty($key) && !isset(static::$_contents[$id][$key])) { $value = static::$_contents[$id];
return false; if (!empty($key) && is_array($value)) {
return isset($value[$key]);
} }
return true; return true;
} }