From ff9c78d5a299654026dee1217c70056c1b2bf84d Mon Sep 17 00:00:00 2001 From: james Date: Wed, 18 Oct 2006 19:33:04 +0000 Subject: [PATCH] Make tableeditor PHP4 compatiable --- tableeditor.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;