Make tableeditor PHP4 compatiable

This commit is contained in:
james 2006-10-18 19:33:04 +00:00
parent 5e77a78642
commit ff9c78d5a2

View File

@ -147,8 +147,8 @@ class TableEditor
//grab the table //grab the table
$this->classname=$classname; $this->classname=$classname;
if(method_exists($this->classname, 'tableEditorSetup')) { if(is_callable($this->classname, 'tableEditorSetup')) {
call_user_func(array($this->classname, 'tableEditorSetup'), $this); call_user_func(array($this->classname, 'tableEditorSetup'), &$this);
} else { } else {
//grab the list fields //grab the list fields
$this->listfields=$listfields; $this->listfields=$listfields;