PageTemplate/Fixup

* use get_object_vars() instead of property_exists() to test if we can
   load a variable from provided context. The former only returns
   accessible vars while the latter returns true for all properties.
This commit is contained in:
Sarjuuk
2025-10-16 02:04:25 +02:00
parent 7d8b524478
commit 830edb8265

View File

@@ -541,7 +541,7 @@ class PageTemplate
if (!$this->context)
return null;
if (!property_exists($this->context, $var))
if (!isset(get_object_vars($this->context)[$var]))
return null;
$this->rawData[$var] = $this->context->$var;