response->isAjax()) { /** * Displays the header and tabs */ if (! empty($table) && in_array($table, $this->dbi->getTables($db))) { Common::table(); } else { $table = ''; Common::database(); [ $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats, $db_is_system_schema, $tooltip_truename, $tooltip_aliasname, $pos, ] = Util::getDbInfo($db, $sub_part ?? ''); } } elseif (strlen($db) > 0) { $this->dbi->selectDb($db); } /** * Keep a list of errors that occurred while * processing an 'Add' or 'Edit' operation. */ $errors = []; $triggers = new Triggers($this->dbi, $this->template, $this->response); $triggers->main(); } }