From 843c8045c2b5bf647fe8559ac5dee810736345c2 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 8 Apr 2016 12:49:19 +0200 Subject: * Prado upgraded to 3.3.rb4ed61bfeffee3a47e8b313f64cc7436a99cb460 --- lib/prado/framework/TComponent.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/prado/framework/TComponent.php') diff --git a/lib/prado/framework/TComponent.php b/lib/prado/framework/TComponent.php index 127b68a..0752d04 100644 --- a/lib/prado/framework/TComponent.php +++ b/lib/prado/framework/TComponent.php @@ -555,7 +555,10 @@ class TComponent return isset($args[0])?$args[0]:null; } - throw new TApplicationException('component_method_undefined',get_class($this),$method); + // don't thrown an exception for __magicMethods() or any other weird methods natively implemented by php + if (!method_exists($this, $method)) { + throw new TApplicationException('component_method_undefined',get_class($this),$method); + } } -- cgit v1.2.3