<?php
if (!sql_num_rows(sql_query("SELECT name FROM " . $config['table_prefix'] . "config WHERE name='log_calc_runtime'"))) {
    run_query("INSERT INTO " . $config['table_prefix'] . "config (name, value) VALUES ('log_calc_runtime', '0')");
}