X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_cats.php;h=7f11a7226b88250006e5feaa4ea9b3dc77303193;hp=1defd21c5dca05ee5b1e264ed6e0e83b05ec1556;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6 diff --git a/inc/modules/admin/what-config_cats.php b/inc/modules/admin/what-config_cats.php index 1defd21c5d..7f11a7226b 100644 --- a/inc/modules/admin/what-config_cats.php +++ b/inc/modules/admin/what-config_cats.php @@ -44,10 +44,10 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); // Init variable to avoid a notice -$CATS = ""; +$CATS = ''; if (REQUEST_ISSET_POST(('add'))) { // Add a new category @@ -67,10 +67,10 @@ if (REQUEST_ISSET_POST(('add'))) { SQL_FREERESULT($result); // Display message - LOAD_TEMPLATE("admin_settings_saved", false, $content); + LOAD_TEMPLATE('admin_settings_saved', false, $content); } elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('id'))) && (is_array(REQUEST_POST('id')))) { // Change or delete categories... - $TEXT = ""; + $TEXT = ''; foreach (REQUEST_POST('id') as $id => $cat) { // Secure ID $id = bigintval($id); @@ -106,11 +106,11 @@ if (REQUEST_ISSET_POST(('add'))) { if (isset($TEXT)) { // Display message - LOAD_TEMPLATE("admin_settings_saved", false, $TEXT); + LOAD_TEMPLATE('admin_settings_saved', false, $TEXT); } } elseif ((REQUEST_ISSET_POST('del')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) { // Delete categories - $OUT = ""; $SW = 2; + $OUT = ''; $SW = 2; foreach (REQUEST_POST('sel') as $id => $value) { // Load data of category $result = SQL_QUERY_ESC("SELECT cat FROM `{!_MYSQL_PREFIX!}_cats` WHERE id=%s LIMIT 1", @@ -135,7 +135,7 @@ if (REQUEST_ISSET_POST(('add'))) { LOAD_TEMPLATE("admin_del_cats"); } elseif ((REQUEST_ISSET_POST('edit')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) { // Edit categories - $OUT = ""; $SW = 2; + $OUT = ''; $SW = 2; foreach (REQUEST_POST('sel') as $id => $value) { // Load data from the category @@ -163,13 +163,13 @@ if (REQUEST_ISSET_POST(('add'))) { LOAD_TEMPLATE("admin_edit_cats"); } else { // Init variable here - $CATS = ""; + $CATS = ''; // Load all categories $result = SQL_QUERY("SELECT id, cat, visible, sort FROM `{!_MYSQL_PREFIX!}_cats` ORDER BY `sort`", __FILE__, __LINE__); if (SQL_NUMROWS($result) > 0) { // Init variables - $OUT = ""; $SW = 2; + $OUT = ''; $SW = 2; // List already existing categories for editing while ($content = SQL_FETCHARRAY($result)) {