Fixed: radiobutton state in Admin:GeneralConfig not remembered when registration disabled
authorDan
Thu, 01 Nov 2007 10:06:19 -0400
changeset 192 712eb3f230b5
parent 191 8e2fffc5c622
child 193 8877bbfccc38
Fixed: radiobutton state in Admin:GeneralConfig not remembered when registration disabled
plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php	Tue Oct 23 12:30:08 2007 -0400
+++ b/plugins/SpecialAdmin.php	Thu Nov 01 10:06:19 2007 -0400
@@ -344,7 +344,7 @@
         <td class="row1">Account activation:</td><td class="row1">
           <?php
           echo '<label><input'; if(getConfig('account_activation') == 'disable') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="disable" /> Disable registration</label><br />';
-          echo '<label><input'; if(getConfig('account_activation') != 'user' && getConfig('account_activation') != 'admin') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="none" /> None</label>';
+          echo '<label><input'; if(getConfig('account_activation') != 'user' && getConfig('account_activation') != 'admin' && getConfig('account_activation') != 'disable') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="none" /> None</label>';
           echo '<label><input'; if(getConfig('account_activation') == 'user') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="user" /> User</label>';
           echo '<label><input'; if(getConfig('account_activation') == 'admin') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="admin" /> Admin</label>';
           ?>