Fix for endless loop
authorRoland Häder <roland@mxchange.org>
Thu, 29 Oct 2009 19:12:44 +0000 (19:12 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 29 Oct 2009 19:12:44 +0000 (19:12 +0000)
inc/modules/login.php
inc/modules/member/what-order.php
templates/de/html/member/member_order_page2.tpl

index bc46bfb..4252eaf 100644 (file)
@@ -59,6 +59,9 @@ enableBlockMode(false);
 // Generate a tableset for the menu title and content
 loadTemplate('member_header');
 
+// Add code-message here
+handleCodeMessage();
+
 // Begin menu block here
 outputHtml("<tr>
   <td class=\"member_menu\">");
index f7f6049..c2139f5 100644 (file)
@@ -57,9 +57,6 @@ $whereStatement = " WHERE `visible`='Y'";
 // Set undefined array elements
 if (isAdmin()) $whereStatement = '';
 
-// Minimum mails / order
-$content['min'] = getConfig('order_min');
-
 // Count unconfirmed mails
 $links = countSumTotalData(getUserId(), 'user_links', 'id', 'userid', true);
 
@@ -418,7 +415,7 @@ LIMIT 1",
                        $URL = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('NO_RECS_LEFT');
                }
        }
-} elseif (postRequestElement('receiver') == 0) {
+} elseif (postRequestElement('receiver') == '0') {
        // Not enougth receivers selected
        $URL = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('MORE_RECEIVERS1');
 } elseif (($ALLOWED == 0) && (getConfig('order_max_full') == 'ORDER')) {
@@ -590,7 +587,7 @@ LIMIT 1",
                                } else {
                                        // Default output for that your members don't forget it...
                                        $content['url']         = 'http://';
-                                       $content['target_send'] = $content['min'];
+                                       $content['target_send'] = getConfig('order_min');
                                        $content['subject']     = '{--ORDER_DEFAULT_SUBJECT--}';
                                        $content['text']        = '{--ORDER_DEFAULT_TEXT--}';
                                }
index a0fdb67..7d4e396 100644 (file)
@@ -33,7 +33,7 @@
        <tr>
                <td width="10" class="seperator">&nbsp;</td>
                <td align="right">
-                       {--ENTER_RECEIVER--}: Minimum: <strong>$content[min]</strong>
+                       {--ENTER_RECEIVER--}: Minimum: <strong>{?order_min?}</strong>
                </td>
                <td width="10" class="seperator">&nbsp;</td>
                <td><input type="text" name="receiver" class="member_normal" size="4" maxlength="5" value="$content[target_send]" /></td>