diff --git a/libraries/controllers/StructureController.class.php b/libraries/controllers/StructureController.class.php index 3586582bcf..e6484cb6c0 100644 --- a/libraries/controllers/StructureController.class.php +++ b/libraries/controllers/StructureController.class.php @@ -765,7 +765,12 @@ class StructureController extends Controller /** * Runs common work */ - $this->_url_query .= '&goto=tbl_structure.php&back=tbl_structure.php'; + // set db, table references, for require_once that follows + // got to be eliminated in long run + $db = &$this->_db; + $table = &$this->_table; + require_once 'libraries/tbl_common.inc.php'; + $this->_url_query = $url_query . '&goto=tbl_structure.php&back=tbl_structure.php'; $url_params['goto'] = 'tbl_structure.php'; $url_params['back'] = 'tbl_structure.php'; @@ -1945,4 +1950,4 @@ class StructureController extends Controller ) ); } -} \ No newline at end of file +}