diff --git a/tableeditor.class.php b/tableeditor.class.php index 5a31472..6caa1b8 100644 --- a/tableeditor.class.php +++ b/tableeditor.class.php @@ -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;