summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/PradoBase.php2
-rw-r--r--framework/TComponent.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index c03e8f33..38829c87 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -68,7 +68,7 @@ class PradoBase
*/
public static function getVersion()
{
- return '3.0.0';
+ return '3.0.1';
}
/**
diff --git a/framework/TComponent.php b/framework/TComponent.php
index 99907e4d..64854692 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -360,7 +360,10 @@ class TComponent
$object=$this->getSubProperty(substr($method,0,$pos));
$method=substr($method,$pos+1);
}
- $object->$method($sender,$param);
+ if(method_exists($object,$method))
+ $object->$method($sender,$param);
+ else
+ throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name);
}
}
else