From 830edb8265a9f43775b99b84d15f3d25243e9d18 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 16 Oct 2025 02:04:25 +0200 Subject: [PATCH] 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. --- includes/components/pagetemplate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/components/pagetemplate.class.php b/includes/components/pagetemplate.class.php index 26822561..ae216407 100644 --- a/includes/components/pagetemplate.class.php +++ b/includes/components/pagetemplate.class.php @@ -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;