if (isFormSent('edit')) {
// Edit template
$row = 'admin_edit_country_row';
- $do = 'modify';
+ $do = 'do_edit';
$class = 'form_submit';
$submit = '{--ADMIN_COUNTRY_EDIT_NOW--}';
$title = '{--ADMIN_COUNTRY_EDIT_TITLE--}';
} else {
// Delete template
$row = 'admin_delete_country_row';
- $do = 'remove';
+ $do = 'do_delete';
$class = 'form_delete';
$submit = '{--ADMIN_COUNTRY_DELETE_NOW--}';
$title = '{--ADMIN_COUNTRY_DELETE_TITLE--}';
// Shall we modify / remove entries now?
$message = '';
initSqls();
- if ((isPostRequestElementSet('modify')) && (isPostRequestElementSet('id'))) {
+ if ((isPostRequestElementSet('do_edit')) && (isPostRequestElementSet('id'))) {
// Modify
foreach (postRequestElement('id') as $id => $sel) {
addSql("UPDATE
$message = '{--ADMIN_COUNTRIES_REMOVED--}';
}
+ // Are a message and some SQLs set?
if ((!empty($message)) && (countSqls() > 0)) {
// Run SQL commands
runFilterChain('run_sqls');
// Load currenty setup country codes to list
$result = SQL_QUERY('SELECT `id`, `code`, `descr`, `is_active` FROM `{?_MYSQL_PREFIX?}_countries` ORDER BY `code` ASC',
- __FILE__, __LINE__);
+ __FILE__, __LINE__);
// Are there entries?
if (!SQL_HASZERONUMS($result)) {