Commit: 21e567d5dccb71e20ad6edf60ae59764e91e311d Author: Daniel P. Brown <[email protected]> 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> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
