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
|
//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;
|
||||||
|
Loading…
Reference in New Issue
Block a user