From 7eaa1f86993f58d7542a6c8aa46037bd5aba8696 Mon Sep 17 00:00:00 2001 From: Felix Woldt Date: Tue, 9 Feb 2016 08:59:55 +0100 Subject: [PATCH] FIX EZP-25456 - ezpublish_legacy: eZPersistentObject $this->$def["functions"][$attr](); bugfix in eZPersistentObject changing $this->$def["functions"][$attr](); => $def["functions"][$attr](); --- kernel/classes/ezpersistentobject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/classes/ezpersistentobject.php b/kernel/classes/ezpersistentobject.php index 94f28c6252c..9422bf9a9e1 100644 --- a/kernel/classes/ezpersistentobject.php +++ b/kernel/classes/ezpersistentobject.php @@ -1339,7 +1339,7 @@ public function attribute( $attr, $noFunction = false ) if ( isset( $def["functions"][$attr] ) ) { - return $this->$def["functions"][$attr](); + return $def["functions"][$attr](); } eZDebug::writeError( "Attribute '$attr' does not exist", $def['class_name'] . '::attribute' );