Completed
Push — dev ( 623cfe...d55d72 )
by Greg
04:42
created
bulk/index.php 1 patch
Braces   +27 added lines, -9 removed lines patch added patch discarded remove patch
@@ -198,13 +198,27 @@  discard block
 block discarded – undo
198 198
 
199 199
                 if (!$date->checkDateFormat($new_expiry_date) || $new_pcid == "" || $new_dnsid == "" || $new_ipid == "" || $new_whid == "" || $new_raid == "" || $new_pcid == "0" || $new_dnsid == "0" || $new_ipid == "0" || $new_whid == "0" || $new_raid == "0" || $has_existing_domains == '1') {
200 200
 
201
-                    if ($has_existing_domains == '1') $_SESSION['s_message_danger'] .= "At least one of the domains you entered already exists in " . SOFTWARE_TITLE . ".<BR><BR>You should run the domain list through a Segment filter to determine which one(s).<BR>";
202
-                    if (!$date->checkDateFormat($new_expiry_date)) $_SESSION['s_message_danger'] .= "You have entered an invalid expiry date<BR>";
203
-                    if ($new_pcid == "" || $new_pcid == "0") $_SESSION['s_message_danger'] .= "Please choose the new Category<BR>";
204
-                    if ($new_dnsid == "" || $new_dnsid == "0") $_SESSION['s_message_danger'] .= "Please choose the new DNS Profile<BR>";
205
-                    if ($new_ipid == "" || $new_ipid == "0") $_SESSION['s_message_danger'] .= "Please choose the new IP Address<BR>";
206
-                    if ($new_whid == "" || $new_whid == "0") $_SESSION['s_message_danger'] .= "Please choose the new Web Hosting Provider<BR>";
207
-                    if ($new_raid == "" || $new_raid == "0") $_SESSION['s_message_danger'] .= "Please choose the new Registrar Account<BR>";
201
+                    if ($has_existing_domains == '1') {
202
+                        $_SESSION['s_message_danger'] .= "At least one of the domains you entered already exists in " . SOFTWARE_TITLE . ".<BR><BR>You should run the domain list through a Segment filter to determine which one(s).<BR>";
203
+                    }
204
+                    if (!$date->checkDateFormat($new_expiry_date)) {
205
+                        $_SESSION['s_message_danger'] .= "You have entered an invalid expiry date<BR>";
206
+                    }
207
+                    if ($new_pcid == "" || $new_pcid == "0") {
208
+                        $_SESSION['s_message_danger'] .= "Please choose the new Category<BR>";
209
+                    }
210
+                    if ($new_dnsid == "" || $new_dnsid == "0") {
211
+                        $_SESSION['s_message_danger'] .= "Please choose the new DNS Profile<BR>";
212
+                    }
213
+                    if ($new_ipid == "" || $new_ipid == "0") {
214
+                        $_SESSION['s_message_danger'] .= "Please choose the new IP Address<BR>";
215
+                    }
216
+                    if ($new_whid == "" || $new_whid == "0") {
217
+                        $_SESSION['s_message_danger'] .= "Please choose the new Web Hosting Provider<BR>";
218
+                    }
219
+                    if ($new_raid == "" || $new_raid == "0") {
220
+                        $_SESSION['s_message_danger'] .= "Please choose the new Registrar Account<BR>";
221
+                    }
208 222
 
209 223
                     $submission_failed = 1;
210 224
 
@@ -2267,13 +2281,17 @@  discard block
 block discarded – undo
2267 2281
 
2268 2282
     // Auto Renewal
2269 2283
     echo $form->showRadioTop('Auto Renewal?', '', '');
2270
-    if ($new_autorenew == '') $new_autorenew = '1';
2284
+    if ($new_autorenew == '') {
2285
+        $new_autorenew = '1';
2286
+    }
2271 2287
     echo $form->showRadioOption('new_autorenew', '1', 'Yes', $new_autorenew, '<BR>', '&nbsp;&nbsp;&nbsp;&nbsp;');
2272 2288
     echo $form->showRadioOption('new_autorenew', '0', 'No', $new_autorenew, '', '');
2273 2289
     echo $form->showRadioBottom('');
2274 2290
 
2275 2291
     // WHOIS Privacy Status
2276
-    if ($new_privacy == '') $new_privacy = '1';
2292
+    if ($new_privacy == '') {
2293
+        $new_privacy = '1';
2294
+    }
2277 2295
     echo $form->showRadioTop('Privacy Enabled?', '', '');
2278 2296
     echo $form->showRadioOption('new_privacy', '1', 'Yes', $new_privacy, '<BR>', '&nbsp;&nbsp;&nbsp;&nbsp;');
2279 2297
     echo $form->showRadioOption('new_privacy', '0', 'No', $new_privacy, '', '');
Please login to merge, or discard this patch.