diff options
author | xue <> | 2006-05-04 03:02:44 +0000 |
---|---|---|
committer | xue <> | 2006-05-04 03:02:44 +0000 |
commit | 27478826035da62e1cba07833101b162558f895a (patch) | |
tree | f202993add7c7b5f9992407234dd5272d2267cff /framework/TComponent.php | |
parent | bdae204aaf0d47a284dd19fad52cacef4a4afa46 (diff) |
Merge from 3.0 branch till 1016.
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r-- | framework/TComponent.php | 5 |
1 files changed, 4 insertions, 1 deletions
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
|