forked from science-ation/science-ation
Make tableeditor PHP4 compatiable
This commit is contained in:
parent
5e77a78642
commit
ff9c78d5a2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user