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