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
$this->classname=$classname;
if(method_exists($this->classname, 'tableEditorSetup')) {
call_user_func(array($this->classname, 'tableEditorSetup'), $this);
if(is_callable($this->classname, 'tableEditorSetup')) {
call_user_func(array($this->classname, 'tableEditorSetup'), &$this);
} else {
//grab the list fields
$this->listfields=$listfields;