com web/master: A typo causes checkboxes not to maintain state when round-robin is enabled, and causes corruption of the zone file in some mirrors.:
manage/mirrors.php
| From: | Daniel P. Brown | Date: | Tue, 09 Oct 2012 16:57:13 +0000 |
| Subject: | com web/master: A typo causes checkboxes not to maintain state when round-robin is enabled, and causes corruption of the zone file in some mirrors.: manage/mirrors.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14815@lists.php.net to get a copy of this message | ||
Commit: 21e567d5dccb71e20ad6edf60ae59764e91e311d
Author: Daniel P. Brown <danbrown@php.net> Tue, 9 Oct 2012 12:57:13 -0400
Parents: 9db0fbd6f499896ed91358f4dc53dff777dcfad3
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=21e567d5dccb71e20ad6edf60ae59764e91e311d
Log:
A typo causes checkboxes not to maintain state when round-robin is enabled, and causes corruption of
the zone file in some mirrors.
Changed paths:
M manage/mirrors.php
Diff:
diff --git a/manage/mirrors.php b/manage/mirrors.php
index 32a6e52..ae59ef9 100644
--- a/manage/mirrors.php
+++ b/manage/mirrors.php
@@ -177,7 +177,7 @@ elseif (isset($id)) {
<?php if (!empty($row['hostname'])) { ?>
<th align="right">Round-Robin?</th>
<td>
- <input type="checkbox" name="load_balanced" value="<?php echo
substr($row['hostname'],0,2).(preg_match('/\w+/',$row['load_balanced'])
? ' checked="checked"' : ''); ?>"/>
+ <input type="checkbox" name="load_balanced" value="<?php echo
substr($row['hostname'],0,2); ?>" <?php
preg_match('/\w+/',$row['load_balanced']) ? '
checked="checked"' : ''; ?>/>
</td>
<?php } else { ?>
<th align="right">Round-Robin Country Code</th>