Set value for Hostname to avoid php warning. fix save button. Can't use it to pass action value because it gets translated.

This commit is contained in:
Isaac Connor 2015-11-11 16:43:23 -05:00
parent d5cc602bfa
commit fc85ccbf5f
1 changed files with 4 additions and 2 deletions

View File

@ -32,6 +32,7 @@ if ( $_REQUEST['id'] ) {
} else {
$newServer = array();
$newServer['Name'] = translate('NewServer');
$newServer['Hostname'] = '';
}
$focusWindow = true;
@ -61,8 +62,9 @@ xhtmlHeaders(__FILE__, translate('Server')." - ".$newServer['Name'] );
</tbody>
</table>
<div id="contentButtons">
<input type="submit" name="action" value="<?php echo translate('Save') ?>"/>
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow()"/>
<input type="hidden" name="action" value="Save"/>
<input type="submit" value="<?php echo translate('Save') ?>"/>
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow();"/>
</div>
</form>
</div>