<?php
    run_query("UPDATE " . $config['table_prefix'] . "calc SET calculate = REPLACE(calculate, 'window.opener.location.reload();window.close();', 'if(window.opener.location.href.indexOf(\'report.php\') === -1){window.opener.location.reload();}else{if(window.opener.kanban_num){ let num = window.opener.kanban_num; window.opener[\'updateDataKanban\' + num](); delete window.opener.kanban_num; } else { window.opener.updateReport(); }}window.close();')");