X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_rallyes.php;h=93272e1003f6acc908ae2f95fbd13dc7d63cdd95;hb=1c3cf7c8bd60ea09a2b268e37a2cb2d0ee0cdeef;hp=42324c46020bcfbd31a0f71f3b0114b5c5055074;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/modules/admin/what-list_rallyes.php b/inc/modules/admin/what-list_rallyes.php index 42324c4602..93272e1003 100644 --- a/inc/modules/admin/what-list_rallyes.php +++ b/inc/modules/admin/what-list_rallyes.php @@ -56,11 +56,11 @@ if (isGetRequestElementSet(('rallye'))) { // Activate / deactivate switch (getRequestElement('activate')) { - case '1': // Activate + case 1: // Activate addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET is_active='Y' WHERE `id`=%s AND is_active='N' LIMIT 1"); break; - case '0': // Deactivate + case 0: // Deactivate addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET is_active='N' WHERE `id`=%s AND is_active='Y' LIMIT 1"); break; } @@ -68,11 +68,11 @@ if (isGetRequestElementSet(('rallye'))) { // Automatic notification switch (getRequestElement('notify')) { - case '1': // Activate + case 1: // Activate addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET send_notify='Y' WHERE `id`=%s AND send_notify='N' LIMIT 1"); break; - case '0': // Deactivate + case 0: // Deactivate addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET send_notify='N' WHERE `id`=%s AND send_notify='Y' LIMIT 1"); break; } @@ -80,11 +80,11 @@ if (isGetRequestElementSet(('rallye'))) { // Automatic adding of new members switch (getRequestElement('auto')) { - case '1': // Activate + case 1: // Activate addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET auto_add_new_user='Y' WHERE `id`=%s AND auto_add_new_user='N' LIMIT 1"); break; - case '0': // Deactivate + case 0: // Deactivate addSql("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET auto_add_new_user='N' WHERE `id`=%s AND auto_add_new_user='Y' LIMIT 1"); break; } @@ -283,7 +283,7 @@ ORDER BY start_time DESC", $OUT = ''; $SW = 2; while ($row = SQL_FETCHARRAY($result)) { // Load admin login - $row['alogin'] = getAdminLogin($row['admin_id']); + $row['login'] = getAdminLogin($row['admin_id']); // Count joined userids $joined = countSumTotalData($row['id'], "rallye_users", 'id', "rallye_id", true); @@ -295,7 +295,7 @@ ORDER BY start_time DESC", } // END - if // Alter some variables - if (empty($row['alogin'])) $row['alogin'] = '???'; + if (empty($row['login'])) $row['login'] = '???'; if (empty($row['template'])) $row['template'] = '---'; if (empty($row['descr'])) $row['descr'] = '---'; @@ -305,14 +305,14 @@ ORDER BY start_time DESC", 'select' => "", 'admin_id' => $row['admin_id'], 'email_link' => generateEmailLink($row['admin_id']), - 'alogin' => $row['alogin'], + 'login' => $row['login'], 'id' => $row['id'], 'sw' => $SW, 'title' => $row['title'], 'template' => $row['template'], 'joined' => $joined, - 'start_date' => generateDateTime($row['start_time'], '2'), - 'end_date' => generateDateTime($row['end_time'] , '2'), + 'start_date' => generateDateTime($row['start_time'], 2), + 'end_date' => generateDateTime($row['end_time'] , 2), 'active_lnk' => translateYesNo($row['is_active']), 'notify_lnk' => translateYesNo($row['send_notify']), 'auto_lnk' => translateYesNo($row['auto_add_new_user']), @@ -335,7 +335,7 @@ ORDER BY start_time DESC", case 'N': $row['active_title'] = getMessage('RALLYE_ACTIVATE_NOW'); - $row['active'] = '1'; + $row['active'] = 1; break; } @@ -349,7 +349,7 @@ ORDER BY start_time DESC", case 'N': $row['notify_title'] = getMessage('RALLYE_START_NOTIFY_NOW'); - $row['notify'] = '1'; + $row['notify'] = 1; break; } @@ -363,7 +363,7 @@ ORDER BY start_time DESC", case 'N': $row['auto_title'] = getMessage('RALLYE_START_AUTO_ADD_NOW'); - $row['auto'] = '1'; + $row['auto'] = 1; break; }