Landing pull request 3. BUGFIX: Object::__call() checking the wrong static. Fixes #6438

This commit is contained in:
Simon Welsh 2011-04-25 23:11:09 +12:00 committed by Will Rossiter
parent 14c60c5d9a
commit 44dabbb865

View File

@ -679,7 +679,7 @@ abstract class Object {
public function __call($method, $arguments) {
// If the method cache was cleared by an an Object::add_extension() / Object::remove_extension()
// call, then we should rebuild it.
if(empty(self::$cached_statics[get_class($this)])) {
if(empty(self::$extra_methods[get_class($this)])) {
$this->defineMethods();
}