0) { continue; } $itflow_index_column_list = '`' . implode('`, `', $itflow_index_columns) . '`'; try { mysqli_query($mysqli, "ALTER TABLE `$itflow_index_table` ADD KEY `$itflow_index_name` ($itflow_index_column_list)"); } catch (Throwable $itflow_index_error) { $itflow_index_message = "Database update 3.6.6 could not add the index $itflow_index_name to $itflow_index_table (the rest of the update went on): " . $itflow_index_error->getMessage(); error_log("ITFlow: $itflow_index_message"); if (function_exists('logApp')) { try { logApp('Database Update', 'warning', $itflow_index_message); } catch (Throwable $itflow_index_error) { // The PHP error log has it } } } } unset($itflow_indexes, $itflow_index, $itflow_index_table, $itflow_index_name, $itflow_index_columns, $itflow_index_exists, $itflow_index_column_list, $itflow_index_error, $itflow_index_message);