forked from science-ation/science-ation
- Fix the is_callable calls.
This commit is contained in:
parent
5d20a0590a
commit
57dfb7df27
@ -160,7 +160,7 @@ class TableEditor
|
|||||||
//grab the table
|
//grab the table
|
||||||
$this->classname=$classname;
|
$this->classname=$classname;
|
||||||
|
|
||||||
if(is_callable($this->classname, 'tableEditorSetup')) {
|
if(is_callable(array($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
|
||||||
@ -942,7 +942,7 @@ class TableEditor
|
|||||||
|
|
||||||
$query="SELECT SQL_CALC_FOUND_ROWS {$this->primaryKey}";
|
$query="SELECT SQL_CALC_FOUND_ROWS {$this->primaryKey}";
|
||||||
|
|
||||||
if(is_callable($this->classname, 'tableEditorGetList')) {
|
if(is_callable(array($this->classname, 'tableEditorGetList'))) {
|
||||||
list($sel, $from, $where) = call_user_func(array($this->classname, 'tableEditorGetList'), &$this);
|
list($sel, $from, $where) = call_user_func(array($this->classname, 'tableEditorGetList'), &$this);
|
||||||
} else {
|
} else {
|
||||||
echo "Calling default func\n";
|
echo "Calling default func\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user