]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_rallyes.php
Reset rewritten, SQL fixed, zeros are now numeric
[mailer.git] / inc / modules / admin / what-list_rallyes.php
index aee3d15034f01867335af24c4eba27d2df25e0bc..4438870eee70aee9589aebc598b44f89b249eefd 100644 (file)
@@ -106,7 +106,7 @@ if (isset($_GET['rallye']))
        if ($SEL > 0)
        {
                // Delete selected rallyes and all it's data
        if ($SEL > 0)
        {
                // Delete selected rallyes and all it's data
-               foreach ($_POST['sel'] as $id=>$sel)
+               foreach ($_POST['sel'] as $id => $sel)
                {
                        // Remove selected rallye entirely...
                        $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_rallye_data WHERE id=%s LIMIT 1",
                {
                        // Remove selected rallye entirely...
                        $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_rallye_data WHERE id=%s LIMIT 1",
@@ -133,7 +133,7 @@ if (isset($_GET['rallye']))
        if ($SEL > 0)
        {
                // Change selected rallyes and all it's data
        if ($SEL > 0)
        {
                // Change selected rallyes and all it's data
-               foreach ($_POST['title'] as $id=>$title)
+               foreach ($_POST['title'] as $id => $title)
                {
                        // Secure ID number
                        $id = bigintval($id);
                {
                        // Secure ID number
                        $id = bigintval($id);
@@ -169,7 +169,7 @@ if (isset($_POST['edit']))
        {
                // Make all selected and deactivated rallyes editable
                $SW = 2; $OUT = "";
        {
                // Make all selected and deactivated rallyes editable
                $SW = 2; $OUT = "";
-               foreach ($_POST['sel'] as $id=>$sel)
+               foreach ($_POST['sel'] as $id => $sel)
                {
                        // Load rallye basic data
                        $result = SQL_QUERY_ESC("SELECT title, descr, template, start_time, end_time, min_users, min_prices FROM "._MYSQL_PREFIX."_rallye_data WHERE id=%s LIMIT 1",
                {
                        // Load rallye basic data
                        $result = SQL_QUERY_ESC("SELECT title, descr, template, start_time, end_time, min_users, min_prices FROM "._MYSQL_PREFIX."_rallye_data WHERE id=%s LIMIT 1",
@@ -341,7 +341,7 @@ ORDER BY start_time DESC",
                                // Rallye is active so do not edit it!
                                $content['select'] = "<STRONG class=\"big\">".$id."</STRONG>";
                                $content['active_title'] = RALLYE_DEACTIVATE_NOW;
                                // Rallye is active so do not edit it!
                                $content['select'] = "<STRONG class=\"big\">".$id."</STRONG>";
                                $content['active_title'] = RALLYE_DEACTIVATE_NOW;
-                               $content['active'] = "0";
+                               $content['active'] = 0;
                                break;
 
                        case 'N':
                                break;
 
                        case 'N':
@@ -355,7 +355,7 @@ ORDER BY start_time DESC",
                        {
                        case 'Y':
                                $content['notify_title'] = RALLYE_STOP_NOTIFY_NOW;
                        {
                        case 'Y':
                                $content['notify_title'] = RALLYE_STOP_NOTIFY_NOW;
-                               $content['notify'] = "0";
+                               $content['notify'] = 0;
                                break;
 
                        case 'N':
                                break;
 
                        case 'N':
@@ -369,7 +369,7 @@ ORDER BY start_time DESC",
                        {
                        case 'Y':
                                $content['auto_title'] = RALLYE_STOP_AUTO_ADD_NOW;
                        {
                        case 'Y':
                                $content['auto_title'] = RALLYE_STOP_AUTO_ADD_NOW;
-                               $content['auto'] = "0";
+                               $content['auto'] = 0;
                                break;
 
                        case 'N':
                                break;
 
                        case 'N':