// Save configuration
adminSaveSettingsFromPostData();
} else {
- // Prepare data
- switch (getConfig('verbose_sql')) {
- case 'Y':
- $content['verbose_y'] = ' checked="checked"';
- $content['verbose_n'] = '';
- break;
+ // Prepare content
+ $content['verbose_y'] = '';
+ $content['verbose_n'] = '';
- case 'N':
- $content['verbose_y'] = '';
- $content['verbose_n'] = ' checked="checked"';
- break;
- } // END - switch
+ // Prepare data
+ if (isVerboseSqlEnabled()) {
+ // Is enabled
+ $content['verbose_y'] = ' checked="checked"';
+ } else {
+ // Is disabled
+ $content['verbose_n'] = ' checked="checked"';
+ }
// Load template
loadTemplate('admin_config_extensions', false, $content);
-
}
// [EOF]